a port of the "mario-2d-jumps-box2dcore-webgl-js" demo by 8observer8 that showcase integration of melonJS with @box2d/core.
![Screenshot 2023-07-28 at 10 27 46 AM](https://private-user-images.githubusercontent.com/4033090/256707127-231efde4-5906-403a-8392-ae48ff071df8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2NDg5NzMsIm5iZiI6MTcyMDY0ODY3MywicGF0aCI6Ii80MDMzMDkwLzI1NjcwNzEyNy0yMzFlZmRlNC01OTA2LTQwM2EtODM5Mi1hZTQ4ZmYwNzFkZjgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTBUMjE1NzUzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Mzk0M2ZjMTQyOTk2MjljYzQwNjhlMjIxZTQ0NGE5ZjdjYWFjNjc2NWVjNmIzOTY0ZmFjZjI2OTA3ZjQyNjkxOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.Aqr-V19zuNfCAeHJX7tAgcBu9d_2-KDDTNqH3AN1qkQ)
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