Dragon Fighter is a turn based RPG game. The objective of the game is to kill as many dragons as possible
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.
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
Left arrow / Space key - attack dragon (See the description bellow when you can attack this line)
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.
- JavaScript, Phaser 3
- Webpack, Eslint, Jest
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
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Webpack configuration of loaders
This project is MIT licensed.