make2d
    Preparing search index...

    make2d

    make2d

    Game FrameWork for JavaScript 2D WebGL Canvas Games

    Check out the demo sandbox to see below code in action.

    [1x Scene]
    ├──[1x WebGL Canvas (pixi.js)]
    ├──[1x Collision Detection]
    └──[50x GameObject (Player)]
    ├──[1x CircleBody]
    └──[1x Animator]
    └──[1x StateMachine]
    • Lifecycle: base class for managing destroying whole branches of object-tree
    • Component: base of anything
    • Sprite: mix of PIXI.Sprite and Lifecycle
    • Container: mix of PIXI.Container and Lifecycle,
    • Animator: container of multiple PIXI.AnimatedSprite
    • GameObject: basic concept from Unity, has components
    • Prefab: may be used instead of normal JS instantiation
    • SceneSSR: scene replacement in node.js environment
    • Scene: basic container and main class
    • Resources: easy to use resources loader
    • StateMachine: basic state management component
    • CircleBody: circular collider for collisions
    • PolygonBody: polygonal collider for collisions
    • BoxBody: rectangular collider for collisions
    • TextureAtlas: for cutting atlases into frames
    yarn add -D make2d
    

    Here is the in-depth api documentation easy to browse.