Skip to content

A simple sample application showcasing how you can build a "Space Invaders" game clone using ConfigCat's Feature Flag Management System and MelonJS

License

Notifications You must be signed in to change notification settings

configcat-labs/feature-flags-in-melonJS-sample

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Building the Space Invaders game with melonJS and Feature Flags

A simple ES6 Webpack based reconstruction of the Space Invaders game as a base showcase application for ConfigCat Feature Flag testing with melonJS.

This is a companion app for the Space Invaders game with melonJS and Feature Flags ConfigCat blogpost.

How to run

Ensure you have Node.js installed, then install all the build dependencies in the folder where you cloned the repository :

$ [sudo] npm install

Usage

  • npm run dev to start the dev server on watch mode at localhost:9000.

Folder structure

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

Step by step tutorial from MelonJS and other useful resources:

ConfigCat also supports many other frameworks and languages. Check out the full list of supported SDKs here

You can also explore other code samples for various languages, frameworks, and topics here in the ConfigCat labs on GitHub.

Keep up with ConfigCat on Twitter, Facebook, LinkedIn, and GitHub.

Author

Manuel Popa

Contributions

Contributions are welcome!

About

A simple sample application showcasing how you can build a "Space Invaders" game clone using ConfigCat's Feature Flag Management System and MelonJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 94.9%
  • CSS 3.9%
  • HTML 1.2%