This is a game developed as a final project to complete the JavaScript Module. It is a shooter game build entirely with JavaScript and it uses Phaser 3 dependency. The score feature uses an API.
Use W, A, S, D keys to move and to shoot press the SPACE key.
Every enemy you destroy will add a point. In game over scene, you will be able to save your score with your name.
- JavaScript
- Webpack
- Phaser 3
- Babel
- Jest
- Eslint
- Stylelint
All assets like images, sounds and music are from OpenGameArt.org.
To get a local copy follow up these simple example steps.
- Local Machine installed Nodejs
- Npm as a package manager
- A code editor as Visual Studio, Sublime,etc.
- Please make a local copy of this repo by typing this command on your terminal.
git clone https://github.com/Jarfsoft/Shooter-game.git
- Then, go to the folder created with:
cd Shooter-game
- In order to install all dependencies and assets please run this command:
npm install
Now that you have everything installed you need to compile everything:
npm run build
Now for the usage, you just need to open the index.html
with the live server of your choice.
You will see that your web browser open a tab and then the game is playable.
After installing all the dependencies with npm install
, you can use the server you like to load the game. In VS code you can download the extension Live Server
by Ritwick Dey
and load the index.html file that is in the root of the project. The button Go Live
will be in the lower right corner of the window.
To run the test implemented for the game, please run this command:
npm run test
👤 Juan Raudales
- GitHub: @Jarfsoft
- Twitter: @Jarfsoft
- LinkedIn: Juan Raudales
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Thank you to opengameart.org that provided me all the assets for the game
- Thank you to Microvsere, who challenge me to built this game.
This project is MIT licensed.