Skip to content

martinnajjar12/space-shooter

Repository files navigation

Space Shooter

Space Shooter is a simple game built with Phaser 3 and JavaScript.

screenshot

Game Screenshot



Built With

  • Phaser 3
  • JavaScript
  • Webpack
  • Async/Await

Dependencies

  • Phaser
  • Webpack
  • Copy Webpack Plugin
  • Babel
  • Dotenv

Game Design Document:

Click on this link to view the Game Design Document.

Instructions to Play:

Use the arrows of your keyboard to move the ship around the space, and Space Bar to shoot laser on the enemies.

Live Demo

Live Demo

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

  • Node.js
  • VSCode
  • Live Server (VSCode extension)

Setup

Clone this repo either by typing `git clone https://github.com/martinnajjar12/space-shooter` (You must have git installed on your local machine in this case) or download a zip version of the code from GitHub.

Instal the dependencies with:

  npm install

Usage

Compile the code by typing the following command in your terminal (Make sure your in the root directory of your project):

  npm run start

Now open up VSCode and open the project folder. (Make sure you install Liver Server Extension in VSCode.) Right-click index.html which is inside the dist folder and click on Open With Live Server.

Note: You may not get the leaderboard on your local machine because you don't have access to the Game Id to correctly fetch the API.

Author: Martin Najjar

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

About

A simple web game that uses Phaser 3 and JavaScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published