| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
|
| |
- I made the snake smart!
- now it follows the appple around the screen trying to eat it
- figuring out collision logic and making sure the snake didn't eat itself and all was .. whoo boy, it was wild
- but in the end it works well enough!
- Added game win/lose conditions
- Added fruit
- will make that work tomorrow
- hacky AS HECK! here be dragons yall
- collision detection is full of special cases, and I don't like how it works
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
See changelog I guess?!
Updated COPYING. Cool rock picture to come.
|
| |
|
|
|