Day 30 complete.
This commit is contained in:
+28
-4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user