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