Day 29 complete.

This commit is contained in:
2026-04-03 18:05:35 -07:00
parent 457ff9707f
commit cd8f62f530
3 changed files with 209 additions and 43 deletions
+22 -3
View File
@@ -1,5 +1,5 @@
#ifndef HANDMADE_H_SENTRY
#define HANDMADE_H_SENTRY
#define HANDMADE_H_SENTRY
#include "core.h"
@@ -106,8 +106,8 @@ typedef struct game_memory {
U64 PermanentStorageSize;
void *PermanentStorage; /* WARNING: This memory is REQUIRED to be zero
initialized!!! (Done by the OS
layer.) */
initialized!!! (Done by the OS
layer.) */
U64 TransientStorageSize;
void *TransientStorage; /* WARNING: This memory is REQUIRED to be zero
@@ -136,6 +136,25 @@ void UpdateAndRender(thread_context *Thread, game_memory *Memory,
*
*/
typedef struct tile_map {
S32 CountX;
S32 CountY;
F32 UpperLeftX;
F32 UpperLeftY;
F32 TileWidth;
F32 TileHeight;
U32 *Tiles;
} tile_map;
typedef struct world {
S32 TileMapCountX;
S32 TileMapCountY;
tile_map *TileMaps;
} world;
typedef struct game_state {
F32 PlayerX;
F32 PlayerY;