In this project, I created a web application using JS and Phaser3 framework for a simple shooter game.
- My Objectives at the end of day two at this project to create a simple and easy to use shooter game with basic functions:
1. Basic and attractive game design.
2. Basic options that meet the requirements of this game.
3. Adding score options for the players who want to show up their scores.
I successfully achieved these objectives, and I am thinking later to create different levels by increasing the enemies in the game scene.
Introduction I need to create a shooter game, that has battle scene, hero and different kinds of enemies and allies.
Story: The aliens attack the earth with all of their power, but fortunately the hero is here to protect us. So our future is between his hands, the hero player has to fight very well against the enemies. The hero can move his astronomy ship to avoid the enemies and their bullets.
Assets I downloaded the assets (images, objects and sounds) to be compatible with space.
- Hero:
- Enemies:
- Backgrounds:
- Firstly you will see the loading scene:
- After loading assets, you will find these options, Select the first Button: Play.
3 You will enter the game, You are the hero and you will fight the enemies (Take care from small enemies :D, they will follow you).
-
Controll buttons:
- W for up.
- S for down.
- A for left.
- D for right.
- Space for fire.
-
You can save your score by click on the Save score button and enter your name.
- You can check the top 5 players if you are between them or not by visiting the high score scene:
- Javascript.
- HTML,CSS.
- Phaser3 Framework.
- Webpack.
- Jest.
- Deployed to Netlify.
- Main testing for scenes and objects.
- Api Test.
- To run this project locally, please ensure you have npm installed and the local server plugin in VS code on your machine.
- Open the terminal.
- Clone this repository by running:
git clone https://github.com/AhmedAmin90/shooterGame-Phaser3
- To install the dependencies Open your terminal at the project folder:
npm install
- Run the :
npm run build
-
Open the local server (Open VS code and open your local server ):
-
For Testing:
npm run test
- I downloaded my assets from https://opengameart.org/.
Ahmed Amin
- GitHub: @AhmedAmin90
- LinkedIn: Ahmed Amin
Any advice and suggestion for improvement are more than welcome. Visit issues' section
Give a star if you like this project!
This project is MIT licensed.