Fixed animation
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user