/RPG-Game

This is an application about a basic 2D Roll Playing Game with heroes moving through a small world, sorting obstacles and facing enemies. In each battle, you can earn some points if you defeat the enemies, the purpose of the game is to earn as many points as possible. In this case, our hero is a manatee in a sea world facing evil octopuses and jellyfishes. It was developed using the Phaser library.

Primary LanguageJavaScript

Logo

RPG Game

Made by Alan Soto
This is an application about a basic 2D Roll Playing Game with heroes moving through a small world, sorting obstacles, and facing enemies. In each battle, you can earn some points if you defeat the enemies, the purpose of the game is to earn as many points as possible. In this case, our hero is a manatee in a sea world facing evil octopuses and jellyfishes. It was developed using the Phaser library.


‎ ‎ ‎ ‎


Table of Contents

Live Demo

Live version

About the game

Once the game ran, a menu displays.

  • Play button to start the game
  • Options button to disable/enable soundtrack.
  • Instructions button to know how to play.
  • Leaderboard button to view high scores.
  • Credits button to see the developers.

screenshot

In order to start the game, you need to enter a name (12 characters maximum) that will be saved along with your score. Hopefully, you can appear in the high scores.

screenshot

Enjoy the game moving around the world with the arrow-keys.

screenshot

Take some battles to increase your reputation as a hero.

  • Press space-bar/left-arrow once to be able to select an enemy.
  • Select an enemy with up-arrow/down-arrow.
  • Attack an enemy pressing space-bar/left-arrow.

screenshot

Eventually, everyone dies, even the heroes. In this scene of the game, you will be able to see your final score and the three highest scores.

screenshot

Built With

  • JavaScript
  • Phaser
  • Webpack
  • Jest
  • VS Code

Getting Started

Get a local copy, type on console...

 $ cd <'the location yo want to save the project'>
 $ git clone https://github.com/AlanSoto31/RPG-Game.git

Prerequisites

  • nodejs 14.16.0

Setup

  1. Go inside the project folder: cd RPG-Game.
  2. Install dependencies: npm install.
  3. Start the application: npm run start
  4. Wait for the server to launch the app.
  5. Stop the application: ctrl + c

Testing

  1. Go inside the project folder: cd RPG-Game.
  2. Run the test: npm run test.`

Author

👤 Alan Soto

Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

📝 License

This project is MIT licensed.