A WeChat mini-game built on a hand-written TypeScript game framework — a custom engine layer (assets, FSM, input, entities) under a small action game.
MagicTaleScript is the TypeScript codebase for the MagicTale mini-game, notable for its from-scratch engine framework. Rather than lean on a full engine, it implements its own layered runtime (GameBase / GameCore / GameLogic) and runs on the WeChat mini-game adapter.
- Custom engine framework —
GameBase:AssetManager,FSMController,Pool,GestureManager,Event/Handler,Singleton, string/entity utils. - Game core —
GameRoot/MGame, procedure flow (Menu/Battle),EventManager,ResourceManager,NodeManager,Joystick, math utils. - Battle & entities —
BattleSession, aCreatureentity, anEntitySystem, and aMoveCompcomponent. - UI layer — window manager, base window, main menu (
GameLogic). - WeChat integration —
weapp-adapterbootstrapping (Envboot.ts).
GameBase/ Asset · FSM · Pool · Touch · Event · UI utils
GameCore/ GameRoot · MGame · Procedures · Event · Resource · Joystick · Battle (Unit/Entity/System)
GameLogic/ Battle scene · Windows/UI · Utils
Targets the WeChat mini-game platform. Original code authored by me.