|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|