pxl8/src/pxl8_game.h

27 lines
431 B
C
Raw Normal View History

2025-10-17 17:54:33 -05:00
#pragma once
#include "pxl8_gfx.h"
#include "pxl8_script.h"
#include "pxl8_types.h"
typedef struct pxl8_game {
pxl8_gfx* gfx;
pxl8_script* script;
i32 frame_count;
u64 last_time;
f32 time;
2025-11-09 06:30:17 -06:00
f32 fps_accumulator;
i32 fps_frame_count;
f32 fps;
2025-11-18 23:50:02 -06:00
pxl8_input_state input;
2025-10-17 17:54:33 -05:00
bool repl_mode;
2025-11-01 12:39:59 -05:00
bool repl_started;
2025-10-17 17:54:33 -05:00
bool running;
bool script_loaded;
char script_path[256];
} pxl8_game;