Mercurial > hg > beaglert
comparison projects/tank_wars/game.h @ 22:fbfeb5895efd matrix_gpio
Updated tank wars demo for new API
author | andrewm |
---|---|
date | Sun, 03 May 2015 01:10:17 +0100 |
parents | 49f22e1246b2 |
children | 8d80eda512cd |
comparison
equal
deleted
inserted
replaced
20:58eb99dac921 | 22:fbfeb5895efd |
---|---|
24 | 24 |
25 // State queries | 25 // State queries |
26 bool gameStatusPlayer1Turn(); | 26 bool gameStatusPlayer1Turn(); |
27 bool gameStatusProjectileInMotion(); | 27 bool gameStatusProjectileInMotion(); |
28 int gameStatusWinner(); | 28 int gameStatusWinner(); |
29 bool gameStatusCollisionOccurred(); | |
30 float gameStatusProjectileHeight(); | |
29 | 31 |
30 // Render screen; returns length of buffer used | 32 // Render screen; returns length of buffer used |
31 int drawGame(float *buffer, int bufferSize); | 33 int drawGame(float *buffer, int bufferSize); |
32 | 34 |
33 // Cleanup and memory release | 35 // Cleanup and memory release |