https://github.com/obiot/mario-2d-jumps-box2dcore-melonjs
a melonJS port of the "mario-2d-jumps-box2dcore-webgl-js" demo by 8observer8
https://github.com/obiot/mario-2d-jumps-box2dcore-melonjs
box2d mario melonjs physics-2d physics-simulation platformer
Last synced: about 1 year ago
JSON representation
a melonJS port of the "mario-2d-jumps-box2dcore-webgl-js" demo by 8observer8
- Host: GitHub
- URL: https://github.com/obiot/mario-2d-jumps-box2dcore-melonjs
- Owner: obiot
- License: mit
- Created: 2023-07-26T01:23:45.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-03T01:10:30.000Z (almost 3 years ago)
- Last Synced: 2025-01-23T04:25:23.514Z (over 1 year ago)
- Topics: box2d, mario, melonjs, physics-2d, physics-simulation, platformer
- Language: JavaScript
- Homepage: https://obiot.github.io/mario-2d-jumps-box2dcore-melonjs/
- Size: 3.56 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mario 2D Jumps (melonJS x @Box2D/core edition)
--------------------------------------
a port of the "mario-2d-jumps-box2dcore-webgl-js" demo by [8observer8](https://8observer8.github.io) that showcase integration of [melonJS](http://melonjs.org) with [@box2d/core](https://lusito.github.io/box2d.ts/).

Description
-------------------------------------------------------------------------------
a tiny mario 2d platformer game built with [melonJS](http://melonjs.org) and the [@box2d/core](https://lusito.github.io/box2d.ts/) 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
Building the demo
-------------------------------------------------------------------------------
If you wish to build the demo and expand on the current features, you will need to install :
- The [Node.js](http://nodejs.org/) JavaScript runtime and the [NPM](https://npmjs.org/) package manager
then
- `npm run dev` to start the dev server on watch mode at `localhost: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.
To Do List
-------------------------------------------------------------------------------
- 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
Credits
-------------------------------------------------------------------------------
- [8observer8](https://8observer8.github.io) for the original demo
- [melonJS](http://melonjs.org) for the game engine
- [@box2d/core](https://lusito.github.io/box2d.ts/) for the physic engine
- [Tiled](https://www.mapeditor.org/) for the map editor
- [FreeTexturePacker](http://free-tex-packer.com) for the free texture packer
- [SnowB](https://snowb.org) for the BitmapFont editor