Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 2.52 KB

File metadata and controls

45 lines (35 loc) · 2.52 KB

Mario 2D Jumps (melonJS/Box2Dwasm edition)


a port of the Mario 2D @box2d/core Demo using the WebAssembly version of Box2d, that showcase integration of melonJS with box2d-wasm.

mario-2d-demos-box2dwasm-melonjs

Description

a tiny mario 2d platformer game built with melonJS and the box2d-wasm physics engine that showcase key features of melonJS :

  • WebGL rendering
  • integration with Box2D (WebAssembly version) 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 JavaScript runtime and the NPM 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