Half of day 39 complete.
This commit is contained in:
+14
-8
@@ -18,11 +18,8 @@ typedef struct debug_read_file_result {
|
||||
void *Contents;
|
||||
} debug_read_file_result;
|
||||
|
||||
debug_read_file_result DEBUGPlatformReadEntireFile(thread_context *Thread,
|
||||
const char *Filename);
|
||||
B32 DEBUGPlatformWriteEntireFile(thread_context *Thread,
|
||||
const char *Filename, U32 MemorySize,
|
||||
void *Memory);
|
||||
debug_read_file_result DEBUGPlatformReadEntireFile(thread_context *Thread, const char *Filename);
|
||||
B32 DEBUGPlatformWriteEntireFile(thread_context *Thread, const char *Filename, U32 MemorySize, void *Memory);
|
||||
void DEBUGPlatformFreeFileMemory(thread_context *Thread, void *Memory);
|
||||
#endif
|
||||
|
||||
@@ -171,17 +168,26 @@ typedef struct loaded_bitmap {
|
||||
U32 *Pixels;
|
||||
} loaded_bitmap;
|
||||
|
||||
typedef struct hero_bitmaps {
|
||||
S32 AlignX;
|
||||
S32 AlignY;
|
||||
|
||||
loaded_bitmap Head;
|
||||
loaded_bitmap Cape;
|
||||
loaded_bitmap Torso;
|
||||
} hero_bitmaps;
|
||||
|
||||
typedef struct game_state {
|
||||
memory_arena WorldArena;
|
||||
world *World;
|
||||
|
||||
tile_map_position CameraP;
|
||||
tile_map_position PlayerP;
|
||||
|
||||
loaded_bitmap Backdrop;
|
||||
|
||||
loaded_bitmap HeroHead;
|
||||
loaded_bitmap HeroCape;
|
||||
loaded_bitmap HeroTorso;
|
||||
U32 FacingDirection;
|
||||
hero_bitmaps HeroBitmaps[4];
|
||||
} game_state;
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user