HTML5 2D games built up with PhaserJS framework. All games have time limit, dynamic level changing and score features. All games are highly customizable and adapt to mobile and desktop screen sizes.
- Install npm dependencies:
$ npm install
- Run development mode:
$ npm run dev
- Open the http://localhost:10001/games.html and select a game from the list.
Click here to open deployed games.
-
"Anagram" - find the correct combination of shuffled words from given options.
-
"Double" - find the pair of same sprites from separated rectangles.
-
"Bug Sequence" - select the correct sequence of "bugs" from given grid.
-
"Colors" - choose the words whose appropriate color corresponds to its name.
-
"Memo" - memorize the order of cards then choose the correct pairs from flipped cards.
To add a new game, you need to take a few required steps:
- Create game's folder into
src/games
folder. - Create game's bootrapper (inherit from
BootstrapperBase
class). - Register scenes and levels by overriding
BootstrapperBase
methods:registerLevels()
- register game levels by callingaddLevel()
.registerScenes()
- register scenes with their key and scene type by callingaddScene(key, sceneType)
method.getStartupScene()
- specify the key name of the startup scene.
- Create a new instance of your game's bootstrapper in
gamesList.ts
file.
If your game has assets then you have to update the rollup.config.dist.js
and rollup.config.dev.js
file.