about summary refs log tree commit diff stats
path: root/cover.png
diff options
context:
space:
mode:
authorCase Duckworth2023-05-31 23:19:11 -0500
committerCase Duckworth2023-05-31 23:19:11 -0500
commit75a05e81122219570188759396a6cd32f470d017 (patch)
tree78b8be89f2881b91ecd1213df58dc3520a446ce4 /cover.png
parentAdd cool rock picture (diff)
downloadapple-75a05e81122219570188759396a6cd32f470d017.tar.gz
apple-75a05e81122219570188759396a6cd32f470d017.zip
The snake moves on its own!
- Added color using the (yolk attrs) library
- Parameterize (me) and (snake) in main to make definition order unimportant
- Change game loop and event handling to allow for independent snake movement
  - This didn't require using threads!
  - Also enabled hjkl for movement.
  - The snake is very dumb right now --- it just goes in a circle.
  - Also includes timing!
  - And changing direction!
- Randomly place snake and apple
- Refactor functions to pass around the world less
  - This means that things now hold a reference to the world they're in .. I think this makes sense
- Add checking if things are around a given thing
Diffstat (limited to 'cover.png')
0 files changed, 0 insertions, 0 deletions