Let AI refactor everything and see if it breaks.
This commit is contained in:
1 parent
561b99b710
commit
b873ac24ca
11 files changed
+656
-576
No files matched your search
@@ -0,0 +1,24 @@
|
||||
#ifndef GAME_STATE_H
|
||||
#define GAME_STATE_H
|
||||
|
||||
#include <array>
|
||||
#include <deque>
|
||||
#include <vector>
|
||||
#include <nds/ndstypes.h>
|
||||
|
||||
struct GameState {
|
||||
volatile uint16_t ticks = 0;
|
||||
volatile uint16_t snakelength = 0;
|
||||
volatile uint16_t snakeDirection = 1;
|
||||
volatile uint16_t score = 0;
|
||||
|
||||
bool gameOver = false;
|
||||
bool paused = false;
|
||||
bool hardMode = false;
|
||||
|
||||
std::deque<std::array<int, 3>> snake;
|
||||
std::vector<std::array<int, 2>> apples;
|
||||
std::vector<std::array<int, 2>> bad_apples;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user