Craters.js
Short description
A Compact html5 Game Engine that helps you build fast, modern HTML5 Games
Features ✨
Rigid Body Physics.
-
QuadTrees Spatial Subdivision
- Broadphase collision detection
-
Separating Axis Theorem
- Narrow phase collision detection
Tile Engine
- Sprite system
- Renders animated images and solid color.
Additional features
- Emscript6 modules
- Reduces your package size
Additional Modules
-
Assets module
- Loads images, Audio and json files.
-
Input module
- Captures keyboard input
-
Sound module
- Creates instances of audio files a fork of Soundbox.js
Installation
- Clone git repository
git clone https://github.com/swashvirus/craters.js.git
- Npm package
npm install craters.js
Let's make a game 🚀
example games are included in the examples and test directory
Writing an example "it's working" game.
{ super fps: 60 container: '#container' size: 1024 512 ; } { super; // draw some text on the screen thiscontextfillStyle = "#fff"; thiscontextfont = '2em Arial' thiscontext }let game = ;
Submit Issues, fixes and Contributions.