Skip to content

florianrehm/geometry_survival

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Needed packets
--------------

SFML (http://www.sfml-dev.org/)
OpenGL

Control
-------

<Left>/<Right> arrow keys to move the player.
'A'/'E' to move player 2 (if added to the game)
'R' to restart the game when all players are dead.
'I' inverts the colors.
<Up>/<Down> to cycle through color schemes

(not yet implemented: '+'/'-' increases/decreases the virtual pixel size.)

Game organization
-----------------

Coordinates of the game start in the upper left corner.
0,0 ............. WIDTH, 0
.
.
.
0, HEIGHT ....... WIDTH, HEIGHT



playfield is organized in this way:

 |----------|
 |          |
 |    *  <------- player's position (rotates around the center)
 |    O <-------- center polygon
 |   ---  <------ bar with distance 1
 |  -----  <----- bar with distance 2
 |----------|

 |----|-----|
 |    |     |
 |  3 | 0   | <-- sectors are enumerated in this way
 |----|-----|
 |  2 | 1   |
 |    |     |
 |----|-----|

 Bars spawn at the outer edge and getting closer to the center.
 If they hit the player, the game is over.
 If they reach the center, they disappear

About

geometry survival game

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 86.1%
  • C++ 12.0%
  • Makefile 1.4%
  • GLSL 0.5%