A simple ES6 Webpack based reconstruction of the Space Invaders game as a base showcase application for ConfigCat Feature Flag testing with melonJS, built with :
- melonJS 2
- ECMAScript 6 structure and semantic
- Webpack
- ConfigCat
- Webpack Dev Server plugin for local development
- Hot Reloading dev server
- Basic Asset Build management
- Minification and Transpiling to ES5 using Babel
- Favicon support using the favicons Webpack Plugin)
Ensure you have Node.js installed, then install all the build dependencies in the folder where you cloned the repository :
$ [sudo] npm install
npm run dev
to start the dev server on watch mode atlocalhost:9000
.
src
└── data
| ├── img
└── js
| ├── renderables
| └── stage
├── index.js
├── index.css
├── index.html
├── manifest.js
src
- the root folder for your game source code
- The entry file is index.js.
- index.css and index.html are default templates that can be customized
- manifest.js is a list of asset to be preloaded by melonJS (these won't be automatically imported and bundled by webpack)
scr/js
- add your source classes here
scr/data
- where to add your game assets
For any questions or technical support about MelonJS you should check out :