Skip to content

PIXI v8, v7, v6 compatible: inspired by Unity, reactive Game Framework: GameObject, StateMachine, CircleBody, PolygonBody, Physics, Sprite, Container, Animator, TextureAtlas, Resources loading

License

Notifications You must be signed in to change notification settings

Jackie-Aniki/make2d

Repository files navigation

make2d

Game FrameWork for JavaScript 2D WebGL Canvas Games

Demo SandBox

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

Demo Structure

[1x Scene]
  ├──[1x WebGL Canvas (pixi.js)]
  ├──[1x Collision Detection]
  └──[50x GameObject (Player)]
       ├──[1x CircleBody]
       └──[1x Animator]
            └──[1x StateMachine]

Features

This FrameWork exports all those

  • 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

Installation

yarn add -D make2d

API Docs

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

Demo Code

About

PIXI v8, v7, v6 compatible: inspired by Unity, reactive Game Framework: GameObject, StateMachine, CircleBody, PolygonBody, Physics, Sprite, Container, Animator, TextureAtlas, Resources loading

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •