/rpg_js

This project consists of building a video game using JavaScript (ES6) and the Phaser game engine. An encapsulation in modules was carried out through Webpack. Player scores are tracked and sent to the Leaderboard API. And finally, the test of some units was carried out using Jest.

Primary LanguageJavaScript

Jet Pack Mouse

This project consists of building a video game using JavaScript (ES6) and the Phaser game engine.

Game Design Document

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.

How to play

  • 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.

Design Credits

Requirements

Node.js is required to install dependencies and run scripts via npm. Usage

Getting Started:

To get a local copy up and running follow these simple example steps:

  1. Under the repository name, click the Clone or download green button.

  2. Copy the URL given by clicking the clipboard button.

  3. Open a terminal window in your local machine and change the current directory to the one you want the clone directory to be made.

  4. Type git clone and then paste the URL you previously copied to the clipboard.

  5. Open a new terminal window in your local machine and change the current directory to your cloned directory.

  6. Run npm install / npm i from the Terminal.

  7. after that npm run build from the terminal.

  8. Finally npm start.

Testing

Run testing cases and Jest will print messages depending on the result

$ npm run test

See a live demo Here

Show your support

Give a ⭐️ if you like this project!

Screenshot

  • Menu

  • screenshot

  • Leaderboard

  • screenshot

  • Player name

  • screenshot

  • Preview

  • screenshot

Authors

👤 Rindra josia

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.