GithubHelp home page GithubHelp logo

std's Introduction

STD: Spaceship Tower Defense.

STD is a version in the space of the famous game Tower Defense.
There is a grid in which you can put spaceships to defense your land. Waves of asteroids come to attack you, so you need to install a big defense in order to keep the game going.

How it works

Each spaceship automatically shots from the left to right, but in case a well-known number of asteroids are on the same line behind the spaceship, this starts to shot from right to the left.

There are three types of spaceships:

  • SNOW : very cheap white spaceship, very fast moving and shooting, but very weak
  • GRASS : green spaceship with a cost, speed, and frequency of shooting in the average. Stronger than SNOW spaceship
  • BLOOD: very expensive red spaceship, very slow moving and shooting but very hard to destroy. Very useful near the border of grid to create a defensive "wall"

Each time a spaceship is hit by an asteroid, if it is not a SNOW spaceship, it is turned in a lower type of spaceship, otherwise it is destroyed. For example a BLOOD spaceship can become a GRASS spaceship.

You can add only one spaceship per cell, if you can pay a well-known value with your score.

Asteroids can move only from right to left, and if they reach the left border score is decreased according on a well-known value.
Pay attention, because if you reach a negative score and you have not any other spaceships, you lose the match. Otherwise, until you have some spaceships alive, you can keep going with the game.
If you kill every asteroid in a wave, you can call a next wave.

Every wave has a bigger number of asteroids, so make sure you have a great defense!

Keys for playing

  • p: Game in pause
  • h: Show help page
  • a: Launch a new wave of asteroids
  • q: Select spaceship SNOW
  • w: Select spaceship GRASS
  • e: Select spaceship BLOOD
  • mouse left-key: put a ship inside a cell

Requirements

  • Linux distribution
  • GLUT is required for the GUI

GUI

A very basic GUI is used for the game. Thanks to Guillaume Perez for his GLUT based library.

Usage

Clone the repository:

$ git clone --recursive [email protected]:lukesmolo/STD.git

You can have a look at the Configuration.h file in order to set your favorite values
Compile the program:

$ make

If you modify Config.h file, please clean all and compile again:

$ make clean
$ make

Credits

libEngine.a, the GLUT based library used in this project for GUI, was written by Guillaume Perez.
Here his project.

License

STD is released under the GPLv2 license.

TODO

  • improve asteroids

std's People

Contributors

lukesmolo avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.