dipbazz / game-with-phaser

An RPG game where the user can move the player around the map and fight the dragon to score the points. The player's score will be saved in the leaderboard API after the game is over. Users can enable or disable the music and sound effect.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Game built with phaser


About

An RPG game built using a phaser where a fictional character fights with the dragons with turn-based on every attack.

Screenshot of homepage

Gameplay

To play the game follow the instruction below:

Movement instruction:

  • Player can use the left (←) arrow key to move left.
  • Player can use the right (→) arrow key to move right.
  • Player can use the up (↑) arrow key to jump.

Battle instruction

  • player can use up (↑) and down(↓) arrow keys to navigate the menu
  • Player can use the space bar to select the options from the menu.

How to play on your local machine

Installation instructions

  • Clone the repo and navigate to the directory
  • Install the npm package with npm install
  • Start the server with npm run start
  • Open your browser at http://localhost:8080/ and enjoy the game.
  • Follow Gameplay instruction above to play the game.

Features

The features of this game are:

  • Player should enter the username to play the game.
  • Player can move a character around the map and collide with the dragon to start the battle.
  • Player should fight the dragon and get the score.
  • When all characters die the game is over and the score will be updated in the leaderboard.
  • When a player kills all the dragons they will be back to the map and fight with another dragon.
  • Player can view the leaderboard from the main menu. Only the top five players will be displayed on the leaderboard.
  • Player can change the options from the options menu to enable or disable background music and sound.
  • Player can view the information about the game on how to play from about menu.

Live Demo

This project is hosted on netlify.

Live demo link

Built With

  • JavaScript
  • Webpack
  • Phaser

Authors

👤 Dipesh Bajgain

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

📝 License

This project is MIT licensed.

About

An RPG game where the user can move the player around the map and fight the dragon to score the points. The player's score will be saved in the leaderboard API after the game is over. Users can enable or disable the music and sound effect.

License:MIT License


Languages

Language:JavaScript 92.7%Language:HTML 7.3%