diff options
author | Case Duckworth | 2023-05-31 23:19:11 -0500 |
---|---|---|
committer | Case Duckworth | 2023-05-31 23:19:11 -0500 |
commit | 75a05e81122219570188759396a6cd32f470d017 (patch) | |
tree | 78b8be89f2881b91ecd1213df58dc3520a446ce4 /COPYING | |
parent | Add cool rock picture (diff) | |
download | apple-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 'COPYING')
0 files changed, 0 insertions, 0 deletions