Commit Graph

13 Commits

Author SHA1 Message Date
cd507c544d Added Game_World_Player and dying/respawning. 2025-12-18 16:04:04 +01:00
0074ecd57b Changed player-movement. From UP, DOWN, LEFT, RIGHT to LEFT, RIGHT. Turn relative to your snake's head. 2025-12-18 14:09:04 +01:00
5e6b042921 Spawn a new food when one was eaten. Initially, there's one food per player spawned. 2025-12-18 13:50:27 +01:00
49732d8b27 Moved game-logic to game_world_tick(..) 2025-12-18 13:33:08 +01:00
c1f43fdc61 Try to get a good position to spawn at. Also gets a good initial move-direction based on where you spawn. 2025-12-18 12:57:06 +01:00
199afff820 Added 'destroy_children' parameter to game_world_destroy_entity(). 2025-12-18 12:10:25 +01:00
4e807afa3c Multiple local inputs. You can now play with your 3 friends locally, fighting over the same keyboard. 2025-12-16 17:29:02 +01:00
fb885c0fc3 More player-tints. Escape to quit when in main-menu. 2025-12-16 12:59:59 +01:00
76e5b3b282 Properly shut down the networking API. 2025-12-16 12:43:47 +01:00
167c8a3ce3 Change snake's tint based on player-id. 2025-12-16 12:43:23 +01:00
9dc13e3feb Fixed mistake that crashes the game if you go to play singleplayer through the menu. 2025-12-16 12:30:14 +01:00
168278faf7 network_stop() and shortcuts to singleplayer and local multiplayer. 2025-12-16 12:14:38 +01:00
8cdbd5b162 Moved code and assets for the game to a seperate folder. Moved jansson and raylib to third_party. 2025-12-16 11:47:55 +01:00