aboutsummaryrefslogtreecommitdiffstats
path: root/src/game.h
blob: b8439dc418e0216a80bd70d25ad22dd388699f69 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * Copyright (c) 2019-2021, 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;