This project consists of building a video game using JavaScript (ES6) and the Phaser game engine.
This game is an infinite runner game based like jetpack joyride. The goal is to keep our Jetpack-wearing mouse alive for as long as possible collecting coins and avoiding obstacles. The score starts with 1 by default.
- You can Switch on the jet pack and fly up with the up arrow key on your keyboard.
- Our hero can fly backward by using the left arrow key on your keyboard.
- Our hero can increase his speed by using the right arrow key on your keyboard.
- Our hero can fly down by using the down arrow key on your keyboard.
- You can restart the game by pressing SPACE on your keyboard when the game is over.
- You can go to the menu by pressing ENTER on your keyboard when the game is over.
-
House Background art from Game Art Guppy.
-
Rocket Mouse art from Game Art Guppy.
Node.js is required to install dependencies and run scripts via npm. Usage
To get a local copy up and running follow these simple example steps:
-
Under the repository name, click the Clone or download green button.
-
Copy the URL given by clicking the clipboard button.
-
Open a terminal window in your local machine and change the current directory to the one you want the clone directory to be made.
-
Type git clone and then paste the URL you previously copied to the clipboard.
-
Open a new terminal window in your local machine and change the current directory to your cloned directory.
-
Run
npm install
/npm i
from the Terminal. -
after that
npm run build
from the terminal. -
Finally
npm start
.
Run testing cases and Jest will print messages depending on the result
$ npm run test
See a live demo Here
Give a ⭐️ if you like this project!
👤 Rindra josia
- Github: @rindrajosia
- Twitter: @rindrajosia
- Linkedin: linkedin
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.