Skip to content

Repository files navigation

MagicTale — TypeScript Engine Edition

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.

Created Language Platform Status

🎮 What it is

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.

✨ Highlights

  • Custom engine frameworkGameBase: AssetManager, FSMController, Pool, GestureManager, Event/Handler, Singleton, string/entity utils.
  • Game coreGameRoot / MGame, procedure flow (Menu / Battle), EventManager, ResourceManager, NodeManager, Joystick, math utils.
  • Battle & entitiesBattleSession, a Creature entity, an EntitySystem, and a MoveComp component.
  • UI layer — window manager, base window, main menu (GameLogic).
  • WeChat integrationweapp-adapter bootstrapping (Envboot.ts).

🗂️ Structure

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

📜 Notes

Targets the WeChat mini-game platform. Original code authored by me.

About

WeChat mini-game on a hand-written TypeScript engine framework.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages