Fixed animation

This commit is contained in:
2025-11-09 18:50:02 -06:00
parent 943e775364
commit d054cf9e36
6 changed files with 13 additions and 23 deletions

View File

@@ -14,6 +14,7 @@ if(DUSK_TARGET_SYSTEM STREQUAL "linux")
target_compile_definitions(${DUSK_TARGET_NAME}
PRIVATE
TIME_SDL2=1
TIME_FIXED=0
)
elseif(DUSK_TARGET_SYSTEM STREQUAL "psp")
target_compile_definitions(${DUSK_TARGET_NAME}

View File

@@ -8,22 +8,10 @@
#pragma once
#include "dusk.h"
#define TIME_STEP (1.0f / 60.0f) // 60 Ticks per second.
#define TIME_STEP (1.0f / 144.0f) // 60 Ticks per second.
#ifndef TIME_FIXED
#define TIME_FIXED 0
#else
#ifndef TIME_PLATFORM_STEP
#error "TIME_PLATFORM_STEP must be defined when TIME_FIXED is enabled"
#endif
#if TIME_PLATFORM_STEP <= 0.0f
#error "TIME_PLATFORM_STEP must be greater than zero"
#endif
#if TIME_PLATFORM_STEP != TIME_STEP
#define TIME_FIXED 0
#endif
#endif
typedef struct {