@pietal.dev/engine
v9.36.0
Published
Game FrameWork for JavaScript 2D WebGL Canvas Games
Maintainers
Readme
One For All
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
- Drawing on WebGL canvas
- Collision detection
- Lifecycle cleanup management
- Reactive events
- State management
- Unity-inspired architecture
- Compatible with pixi version 6, 7 and ~8
This FrameWork exports all those
- Lifecycle: base class for managing destroying whole branches of object-tree
- Component: base of anything
- Sprite: mix of
PIXI.SpriteandLifecycle - Container: mix of
PIXI.ContainerandLifecycle, - 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 managementcomponent - 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 @pietal.dev/engineAPI Docs
Here is the in-depth api documentation easy to browse.
