/SpaceInvader

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".

Primary LanguageJavaScript

Space-Invaders

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".

About

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.

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.

Built with

  • JavaScript
  • Phaser 3
  • Webpack
  • Eslint
  • Babel
  • Jest
  • API

How to play

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

Install WebPack

$ npm install --save-dev webpack

To play local

Install XAMPP

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.

Getting Started

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

To run Jest test

$ npm run test

Live Demo

👤 Jordy Garcia

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

📝 License

This project is MIT licensed.