fivan18 / shooter-game

This is a funny shooter game. A bird has to survive the maximum time possible taking care not to be exploded by fireballs and spiked-balls. The bird is able to shoot eggs. Built with JavaScript and Phaser (https://phaser.io/)

Home Page:https://limitless-sands-02774.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bird surviving

A game where a bird has to survive the maximum possible time.

This project consisted on building a video game using JavaScript and the game Engine Phaser.

Content

Built With

Live Demo

https://limitless-sands-02774.herokuapp.com/

GDD

Topic

A bird evading fireballs and exploding spikedballs with its own eggs.

Objetive of the game

The bird has to survive the maximum time possible taking care not be exploded by fireballs and spikedballs.

Mechanics

  1. Mobility: the bird has the ability to move right, left, up and down. This way skipping the balls.
  2. Shoot: the bird has the ability to shoot eggs against spikedballs.
  3. Scoring System: the number of seconds the bird survive will be the score it gets.

Entities

  • player: the bird
  • enemies: fireballs and spikedballs
  • platform: the sky, only one
  • levels: only one, the number speaked balls will increment parallel the time

User interactions

Movement keys

  • ← : left
  • → : right
  • ↑ : up
  • ↓ : down

Player egg shooter key

  • ⎵ : shoot

Screens

  1. Boot: shows the name game
  2. Prealoader: loads assets and gets current user score if exist
  3. Authentication: if there is not a user saved on local storage, asks player name
  4. Title: gives options to start, configure, see controls or get leader board game
  5. Options: configures sound
  6. Controls: shows controls
  7. Leader Board: shows leaders scores' game
  8. Game: plays the game
  9. Game Over: shows player's current and maximum scores, asks to go to the menu

Getting Started

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

Prerequisites

Make sure you have installed Node JS. If not, follow this guide for Linux or this one for Mac OS.

Setup

Download the project

$ git clone https://github.com/fivan18/shooter-game.git

Install the dependencies

$ npm install

Install

If you want to modify the code and see the changes on live go the project's root directory and run webpack-dev-server with the next command:

$ npm run dev

or you can run the http-server for production enviroment:

$ npx webpack --config webpack.prod.js

$ npm run start

Usage

Open the next link http://localhost:8080/ and enter a player name. Happy playing!!!

Run tests

Only run the next comman inside the project's root directory:

$ npm run test

Deployment

To deploy this project on heroku run the next commands:

$ heroku create

if you are on master branch:

$ git push heroku master

or if you are in another-branch:

$ git push heroku another-branch:master

Authors

👤 Ivan Ulises Guzman Sanchez

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

inputText Phaser library

Sounds

Images

License

This project is MIT licensed.

About

This is a funny shooter game. A bird has to survive the maximum time possible taking care not to be exploded by fireballs and spiked-balls. The bird is able to shoot eggs. Built with JavaScript and Phaser (https://phaser.io/)

https://limitless-sands-02774.herokuapp.com/

License:MIT License


Languages

Language:JavaScript 99.5%Language:HTML 0.3%Language:CSS 0.2%