use floats for ctx.frame_number and ctx.random_seed

This commit is contained in:
veclavtalica
2025-01-10 02:20:21 +03:00
parent f3848d2d52
commit 951d9c76c8
4 changed files with 9 additions and 9 deletions

View File

@ -16,10 +16,10 @@ typedef struct Context {
void *udata;
/* which frame is it, starting from 0 at startup */
uint64_t frame_number;
float frame_number;
/* real time spent on one frame (in seconds) */
/* townengine is fixed step based, so you don't have */
/* townengine is fixed step based, so you don't have to use delta */
/* TODO: actually set it */
float frame_duration;
@ -30,7 +30,7 @@ typedef struct Context {
Vec2 mouse_movement;
/* is set on startup, should be used as source of randomness */
uint64_t random_seed;
float random_seed;
/* whether debugging logic should be enabled in user code */
bool debug;