summaryrefslogtreecommitdiff
path: root/snake.c
diff options
context:
space:
mode:
authorKai Stevenson <kai@kaistevenson.com>2023-02-06 12:46:15 -0800
committerKai Stevenson <kai@kaistevenson.com>2023-02-06 12:46:15 -0800
commit6b900097feeceb485412aea208c5216fd7ae021a (patch)
tree98e23a92c202744bb0c2850104e96a2f1e463959 /snake.c
parent3d1823a0088fb9862eda64aff754721d525bd181 (diff)
changed time scaling to make the game a little easier
Diffstat (limited to 'snake.c')
-rw-r--r--snake.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/snake.c b/snake.c
index aa6cb81..7b286ea 100644
--- a/snake.c
+++ b/snake.c
@@ -120,8 +120,8 @@ int main(int argc, char **argv) {
if((snakePositions.vectors[0].mx + lastMoveDir.mx == foodPos.mx) && (snakePositions.vectors[0].my + lastMoveDir.my == foodPos.my)) {
ateFood = 1;
score += 1;
- if (updateInterval > 50000000) {
- updateInterval -= 20000000;
+ if (updateInterval > 100000000) {
+ updateInterval -= 10000000;
}
/* move the food */
while(1) {