Day 30 complete.

This commit is contained in:
2026-04-04 18:27:49 -07:00
parent cd8f62f530
commit 9473a05a9b
2 changed files with 152 additions and 101 deletions
+28 -4
View File
@@ -136,7 +136,32 @@ void UpdateAndRender(thread_context *Thread, game_memory *Memory,
*
*/
typedef struct cannonical_position {
S32 TileMapX;
S32 TileMapY;
S32 TileX;
S32 TileY;
/* NOTE: Tile-relative X and Y. */
F32 X;
F32 Y;
} cannonical_position;
typedef struct raw_position {
S32 TileMapX;
S32 TileMapY;
/* NOTE: Tile-map relative X and Y. */
F32 X;
F32 Y;
} raw_position;
typedef struct tile_map {
U32 *Tiles;
} tile_map;
typedef struct world {
S32 CountX;
S32 CountY;
@@ -145,10 +170,6 @@ typedef struct tile_map {
F32 TileWidth;
F32 TileHeight;
U32 *Tiles;
} tile_map;
typedef struct world {
S32 TileMapCountX;
S32 TileMapCountY;
@@ -156,6 +177,9 @@ typedef struct world {
} world;
typedef struct game_state {
S32 PlayerTileMapX;
S32 PlayerTileMapY;
F32 PlayerX;
F32 PlayerY;
} game_state;