Commit Graph

17 Commits

Author SHA1 Message Date
cdo 8de374bcfb Extract map logic into functions 2024-12-31 13:15:57 +00:00
cdo b39189b6d1 Create entity_t struct and define entityupdate() and entitydraw() 2024-12-31 13:01:48 +00:00
cdo e7a19b7d91 Fix camera when at edge of map 2024-12-29 18:49:04 +00:00
cdo 31f7895bf3 Support new map and tileset 2024-12-28 19:56:07 +00:00
cdo c24cd75360 Implement terrain collisions 2024-12-28 18:57:29 +00:00
cdo f17530af4a Use walking animation 2024-12-28 17:22:48 +00:00
cdo c5daa136c1 Use directional sprites for player 2024-12-28 14:27:13 +00:00
cdo 10bb223bdd Move view to keep player on-screen 2024-12-28 14:01:10 +00:00
cdo e5752a5fe7 Draw player centered on position 2024-12-28 14:01:10 +00:00
cdo 6ca053f126 Use game coordinates for view and player positions 2024-12-28 13:35:13 +00:00
cdo fad49a7d15 Handle player motion (arrow keys) 2024-12-28 13:35:13 +00:00
cdo 39e8002caf Render player with animated sprite 2024-12-27 17:13:33 +00:00
cdo fa7315d6b3 Implement basic map drawing from tileset 2024-12-27 16:13:21 +00:00
cdo 4151ca5717 Add some block comments 2024-12-27 12:46:39 +00:00
cdo eaf8df0fb1 Handle map path being too long 2024-12-27 12:46:39 +00:00
cdo c0fc016b85 Implement TMX map loading 2024-12-26 20:00:42 +00:00
cdo 57a9b20449 Create basic SDL2 application 2024-12-26 15:40:36 +00:00