summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2024-01-19Remove the Fruit struct.HEADmainRose Hogenson1-22/+11
It really wasn't pulling its own weight.
2024-01-19Use i8 for position instead of u16.Rose Hogenson1-7/+7
The only reason I picked u16 is because it's what ioctl returns for the window size. But we're actually just hard-coding the window size, so I don't need to use u16. I prefer to use a signed type.
2024-01-19Read directly in the main game loop.Rose Hogenson1-42/+23
Turns out this is just fine and doesn't cause any issue at all.
2024-01-19Use libc rand instead of rolling my own.Rose Hogenson1-29/+18
2024-01-15Clean up and simplify the code.Rose Hogenson3-213/+192
2024-01-14Write a simple snake game.Rose Hogenson6-0/+393