a port of the "mario-2d-jumps-box2dcore-webgl-js" demo by 8observer8 that showcase integration of melonJS with @box2d/core.
a tiny mario 2d platformer game built with melonJS and the @box2d/core physics engine that showcase key features of melonJS :
- WebGL rendering
- integration with Box2D physics engine (as part of this demo)
- Tilemap integration
- Texture packing
- Bitmap Font
Note: this is a proof of concept, not a accurate implementation of a super mario game physic & logic
If you wish to build the demo and expand on the current features, you will need to install :
then
npm run dev
to start the dev server on watch mode atlocalhost:9000
npm run build
to generate a minified, production-ready build, in the docs folder
Note: building the project under the
docs
folder will trigger the workflow for the GitHub Pages deployment.
- improve player movement and jumping logic to mimic super mario "real physic"
- add enemies and collectables with proper contact/collision handling
- add parallax background and other details to the mini level
- 8observer8 for the original demo
- melonJS for the game engine
- @box2d/core for the physic engine
- Tiled for the map editor
- FreeTexturePacker for the free texture packer
- SnowB for the BitmapFont editor