Commit Graph

10 Commits

Author SHA1 Message Date
Constantin Köpplinger
f5f846d995 Somewhat major refactor
Snake is now a class, this marks the start of OOPing this thing
Snakes are now an array, making for much sleeker code
Optimized AllSnakeThings, at the cost of debug features like grow-on-key-stroke
2023-03-30 00:57:43 +02:00
Constantin Köpplinger
0f752bdb1c Some refactoring
Added frame time target
2023-03-29 23:48:14 +02:00
morpha
854d1bfde1 Cleaned up a bit, OOPified it as well, even though I meant to keep it as procedural as possible (for now) 2023-03-28 23:21:20 +02:00
morpha
3da34fadb2 Multiplayer is in. It's messy. 2023-03-27 23:46:43 +02:00
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