From 0c738d814c102eb55bbeb383bb0c1fd9dc5950df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Tue, 20 Oct 2020 20:26:25 +0200 Subject: [PATCH] Add time multiplier --- TODO.txt | 8 +++++--- main_sdl.c | 2 ++ settings.h | 4 +++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/TODO.txt b/TODO.txt index 743d223..3c607a7 100644 --- a/TODO.txt +++ b/TODO.txt @@ -1,15 +1,15 @@ general: - Refactor. +- Polish controls (bindings, mouse sensitivity etc.). +- Polish weapon switching, maybe add a key to switch to previous weapon? - Port to OpenDingux. -- Rewrite python scripts to C (faster, less bloat). -- Try to recolor textures and give them a bit more of variety. +- Rewrite python scripts to C (faster, less bloat, fewer dependencies). - automatic tests: a frontend that will play the game, check the state, rendered frames etc. - try to remove the debug flag (-g1) from compiler and see if it decreases size - compile on BSD and WinShit - make SFML frontend -- add time slowdown constant - Port to some fantasy console? - run on raspbery pi @@ -124,6 +124,7 @@ level ideas: over a hole, leading to an easter egg - start of level: a corner blocked by an invisible wall, to indicate entrance DONE - small pyramid from diffetently elevated floor tiles +- add time slowdown constant bugs: @@ -204,6 +205,7 @@ done: - Player can be thrown inside a wall (by an explosion it seems), seems to happen near door. If this can't be prevented completely, automatically unstuck the player into a playable area. +- Try to recolor textures and give them a bit more of variety. scratched: - option for disabling wall transparency, for performance? diff --git a/main_sdl.c b/main_sdl.c index 0105bc8..98753a0 100644 --- a/main_sdl.c +++ b/main_sdl.c @@ -31,6 +31,8 @@ // #define SFG_REVEAL_MAP 1 #define SFG_INFINITE_AMMO 1 +// #define SFG_TIME_MULTIPLIER 512 + // uncomment for perfomance debug //#define SFG_CPU_LOAD(percent) printf("CPU load: %d%\n",percent); diff --git a/settings.h b/settings.h index b25dff5..790dc3c 100644 --- a/settings.h +++ b/settings.h @@ -21,7 +21,9 @@ /** Time multiplier in SFG_Units (1.0 == 1024). This can be used to slow down or - speed up the game. + speed up the game. Note that this also changes the rendering FPS accordingly + (e.g. half FPS at half speed), so if you want to keep the FPS, divide it by + the multiplier value. */ #ifndef SFG_TIME_MULTIPLIER