Skip to content

andpodob/STARGATE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

STARGATE

Description

This is school project which goal was to writte STARGATE, that can by played on browser. It was restricted to use only plain html and javascript without additional libraries and frameworks.

Short game description quoted from https://en.wikipedia.org/wiki/Stargate_(video_game)

The player flies a small spaceship above a long, mountainous landscape. The land is inhabited by a small number of humanoids. The landscape wraps around, so flying constantly in one direction will eventually bring the player back to their starting point. The player's ship can fly through the landscape without being destroyed. A number of enemy ships fly over the landscape. The player's responsibilities are to destroy all Landers and protect the humans from being captured.

alt Text

Screens from the game

Game starting view

alt Text

Gameplay view

alt Text

Mini-map

alt Text

Game Over

alt Text

Running the game

To play this game, just clone this repository, and run index.html file with internet browser. I recommend using Google Chrome.

Controls:

  1. ↑ - spaceship up
  2. ↓ - spaceship down
  3. → - spaceship right
  4. ← - spaceship left
  5. SPACE - shooting
  6. ↵ Enter - Go to next view (start the game/start another wave)

Desigining your own waves in game

Waves can be easily adjusted and added by modifying /stargeteatari2/Waves/Waves_JSON.js file.

var wave_1 = '{"waves":[['+
    '{"type":"lander", "amount":"5", "interval":"1"},'+
    '{"type":"pod", "amount":"0", "interval":"2"},'+
    '{"type":"bomber", "amount":"0", "interval":"2"}],['+
    
    '{"type":"lander", "amount":"10", "interval":"1"},'+
    '{"type":"pod", "amount":"0", "interval":"2"},'+
    '{"type":"bomber", "amount":"0", "interval":"2"}]]}';

I introduced only three types of enemy, amount property in responsible for quantity of certain type of enemy, and interval is time in seconds that allows to adjust fequency of releasing enemy(e.g. in first wave landers are going to be released to the game every second)

About

Loose reconstruction game from Atari.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published