Commit Graph

6 Commits

Author SHA1 Message Date
morpha
fd552b1429 Fixed PlayArea tracking and rendering
Fixed logical errors (particularly in variable/iterator naming)
Added "frame timing" for a more consistent feel
2023-03-27 08:35:35 +02:00
morpha
f948626cd0 What a mess... but now with some actual snake logic!
Self-collision is in
Food is in (currently will cause lag with very large snakes due to re-rolling rng if position occupied by snake segment)
Wall pass-through is in as well, right wall is a bit iffy because of the scroll bar and the auto-advance of the cursor on write
2023-03-26 22:43:27 +02:00
morpha
1ae55c0484 Replaced for-loop with while-loop as main loop
Implemented end-game condition triggered by pressing ESC
2023-03-24 17:57:33 +01:00
morpha
256a05b930 Rudimentary rendering and movement implemented 2023-03-24 17:52:50 +01:00
morpha
d41481a6a2 Projektdateien hinzufügen. 2023-03-24 15:38:15 +01:00
morpha
cde34f5666 .gitattributes und .gitignore hinzufügen. 2023-03-24 15:38:12 +01:00