In this project, I build a shooter game using JavaScript's framework Phaser 3, a "fast, free and fun open-source framework for Canvas and WebGL powered browser games".
This project's objective was to build a shooter game similar to York Computer's tutorial. So I used the main idea but I created my own Space Invader shooter game.
This is a simple endless runner. Enemies appear at the top of the canvas Some shoot you, some pass straight, some pursue you. You control your ship with keyboard W,A,S,D while you shoot with space. Just destroy as many enemies as you can before you die.
In the beginning, you can add your name and at the end you can check if your score is in the Leaders Board . The Leaders Board only show top 5 scores if you beat all scores your score will be on top of the other 4 scores.
- JavaScript
- Phaser 3
- Webpack
- Eslint
- Babel
- Jest
- API
To control your ship you should use these W,S,A,D.These are UPS, DOWN, LEFT and RIGHT keyboards. To shoot enemies use space .
You can play the game online by clicking here
$ npm install --save-dev webpack
Follow this guide to install XAMPP.
After installation follow these steps.
$ /opt/lampp/htdocs
$ git clone https://github.com/garciajordy/SpaceInvader.git
To start the server
sudo /opt/lampp/lampp start
Click here to play in your browser.
To get a local copy of the repository please run the following commands on your terminal:
$ cd <folder>
$ git clone https://github.com/garciajordy/SpaceInvader.git
$ cd SpaceInvader
$ npm run test
👤 Jordy Garcia
- Github:@garciajordy
- Email:jordygarcia0119@gmail.com
- LinkedIn:Jordy Garcia
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
This project is MIT licensed.