15 Commits

Author SHA1 Message Date
763ed9b38a #7 Moved score into its own struct. Print score and reason of death at game over. 2023-11-24 22:17:19 +01:00
44f2c5a41d Disable useless debug coords. 2023-11-24 00:08:13 +01:00
c5827793ef Moving a constant between files. 2023-11-23 23:59:54 +01:00
1a9d75574b #8 Added a function to validate if something is a valid move. 2023-11-23 23:45:55 +01:00
b1cbe95485 Cleaning up comments 2023-11-23 22:47:12 +01:00
aea82ab765 #4 Gives the snake a tail. 2023-11-23 22:36:44 +01:00
3902d2b0a9 Prevents the snake from disappearing when its eating an apple. 2023-11-23 19:17:40 +01:00
b17918f052 Added scoring + apple mechanics 2023-11-12 16:57:52 +01:00
3fb13a165f Esthetics 2023-11-12 16:02:20 +01:00
e66f2a2672 More comments 2023-11-12 16:01:47 +01:00
44724cbbb6 Clean up something that didn't work in the first place. 2023-11-12 15:21:14 +01:00
de33a25864 #2 Start at the center of the screen. Always goes right. Sorta dies when it hits the border, but only when you are pressing a key. If it runs automatically into the border the game freezes. 2023-11-12 14:51:06 +01:00
1f58fa5dbd For #1 split the gameplay loop up from the key processor. Non-blocking channels proof of concept. 2023-11-12 12:55:09 +01:00
9c1a9fc83d Splitting up functions, introducing the game director 2023-11-07 21:47:32 +01:00
8e10c82b67 Rename files for later 2023-11-06 23:43:45 +01:00