diff options
| author | Preston Pan <preston@nullring.xyz> | 2023-02-06 16:44:27 -0800 |
|---|---|---|
| committer | Preston Pan <preston@nullring.xyz> | 2023-02-06 16:44:27 -0800 |
| commit | 03cfa74f489c30c5ec191adfffe6a5314231f6fe (patch) | |
| tree | 40526af1e39462abfcb9c29ab5de43c3c75d84de /snake.c | |
| parent | c29474c03667bcbe99e48fd565ce6736233175d1 (diff) | |
add config.h
Diffstat (limited to 'snake.c')
| -rw-r--r-- | snake.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -11,16 +11,14 @@ #include "snake.h" #include "conio.h" #include "colors.h" - +#include "config.h" #define UNUSED(x) (void)(x) /*** GLOBAL VARIABLES ***/ volatile sig_atomic_t intCtrlC = 0; /* flag for ctrl-c interrupt */ -int speed = 3; int score = 0; -int boardSize = 15; int updateInterval = 300000000L; -int obstacleSize = 2; + vectorp_t obstaclePositions; vectorp_t snakePositions; vector_t foodPos; @@ -38,7 +36,6 @@ int main(int argc, char **argv) { /* parsing arguments */ char *last_flag; int was_flag = 0; - int obstacles = 2; for(int i = 1; i < argc; i++) { if(strcmp("--version", argv[i]) == 0) { printf("snake3, version 2.0\n"); |
