Skip to content

Dragon Fighter is a turn based RPG game. The objective of the game is to kill as many dragons as possible

License

Notifications You must be signed in to change notification settings

Abdusaid10/game-rpg

Repository files navigation

Turn-Based RPG Game

About

Dragon Fighter is a turn based RPG game. The objective of the game is to kill as many dragons as possible

Game

A warrior wants to defeat all the dragons in the world as thye are destroying everything on their way.

A warrior will lead and search for the dragons and whenever he meets a dragon his friend mage will come to help him to defeat the dragons.

How to Play

Movement in the world

To move around the world you can use arrow keys on the keyboard. Left arrow key - move player to the left Right arrow key - move player to the right Up arrow key - move player up Down arrow key - move player down

Attack

Left arrow / Space key - attack dragon (See the description bellow when you can attack this line)

Battle

When you meet a dragon the scene will switch to the battle scene. On the right side of the screen there will be two dragons, and on the left side a Warrior and Mage. You will start of with the Warrior, to attack you can click left arrow key or space button on the keyboard. Also you can choose which dragon to attack by clicking arrow up and down keyboards.

When the battle is over and if you defeat the dragons you score will be increased and scene will switch back to world scene. However, if you loose the battle the scene will switch to the game over scene.

Screenshots of Scenes

Built With

  • JavaScript, Phaser 3
  • Webpack, Eslint, Jest

Run Locally

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

Clone project to your local machine

git clone git@github.com:Abdusaid10/game-rpg.git

Go to the newly created folder

cd game-rpg

Install dependencies

npm install

Build project

npm build

Run Locally

npm start

Open in browser

  http://localhost:8000/

Run Tests

npm test

Author

-Abdusaid Abdurasulov

Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Links

Jest Getting Started

Webpack configuration of loaders

Configuration of jest

Phaser 3 examples

Turn Based RPG Game Tutorial

Phaser 3 Template

Assets can be found here

License

This project is MIT licensed.

About

Dragon Fighter is a turn based RPG game. The objective of the game is to kill as many dragons as possible

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published