use floats for ctx.frame_number and ctx.random_seed
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user