diff options
author | yzrh <yzrh@noema.org> | 2020-10-10 17:16:14 +0000 |
---|---|---|
committer | yzrh <yzrh@noema.org> | 2020-10-10 17:37:53 +0000 |
commit | b9b74e88028f81e7b169a5e168102138e8c2c46c (patch) | |
tree | 2b8f9f8896db3a6871c56215acf71cb502fe7be4 /src/game.h | |
download | snake-sdl-b9b74e88028f81e7b169a5e168102138e8c2c46c.tar.gz snake-sdl-b9b74e88028f81e7b169a5e168102138e8c2c46c.tar.zst |
Initial commit.
Diffstat (limited to 'src/game.h')
-rw-r--r-- | src/game.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/game.h b/src/game.h new file mode 100644 index 0000000..a510c6c --- /dev/null +++ b/src/game.h @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2019-2020, yzrh <yzrh@noema.org> + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#define TICK_TIME_INIT 250000000 +#define TICK_TIME_DEC 10000000 +#define TICK_TIME_MIN 100000000 + +#define PIPE_GAP 4 +#define PIPE_DISTANCE 10 + +typedef struct _Snake_Pos { + int x; + int y; + struct _Snake_Pos *next; +} Snake_Pos; |