diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-06-05 22:17:15 -0400 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-06-05 22:17:15 -0400 |
| commit | d851eae8e7cb4192dcd7213dd1a8b60064156b15 (patch) | |
| tree | 9f5c9e9358205b505e2d0433f56cd50d5c27fdb2 /src/game.h | |
| parent | 3fa9af58bc907048a8ccadc2bef7736ec554a09d (diff) | |
| download | ether-d851eae8e7cb4192dcd7213dd1a8b60064156b15.tar.gz ether-d851eae8e7cb4192dcd7213dd1a8b60064156b15.tar.bz2 ether-d851eae8e7cb4192dcd7213dd1a8b60064156b15.zip | |
players must move when dropping lamps
if no direction is pressed, player dashes in direction of most recent movement. if no movement has occured, choose a random direction. if player cannot move in the chosen direction, choose a random direction. if the player cannot move in any direction, prevent dropping a lamp.
Diffstat (limited to 'src/game.h')
| -rw-r--r-- | src/game.h | 3 |
1 files changed, 3 insertions, 0 deletions
| diff --git a/src/game.h b/src/game.h index 1142efb..6d8a64f 100644 --- a/src/game.h +++ b/src/game.h | |||
| @@ -99,6 +99,9 @@ public: | |||
| 99 | //size_t oldZoom; | 99 | //size_t oldZoom; |
| 100 | int zoomProgress = 0; | 100 | int zoomProgress = 0; |
| 101 | 101 | ||
| 102 | bool firstInput = false; | ||
| 103 | Input lastInput; | ||
| 104 | |||
| 102 | }; | 105 | }; |
| 103 | 106 | ||
| 104 | #endif /* end of include guard: GAME_H_7D2B65AE */ | 107 | #endif /* end of include guard: GAME_H_7D2B65AE */ |
