From 4b6fcdb1a4202bab272e3dfe96c643187fa58d65 Mon Sep 17 00:00:00 2001 From: Miloslav Ciz Date: Mon, 9 Jun 2025 20:57:17 +0200 Subject: [PATCH] Redo menu a little --- TODO.txt | 2 +- frontend_sdl.c | 1 + make.sh | 2 +- renderer.h | 10 ++++------ 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/TODO.txt b/TODO.txt index 6d41a18..ad2ea89 100644 --- a/TODO.txt +++ b/TODO.txt @@ -2,7 +2,6 @@ fuck issue trackers :D =========== GENERAL ============== -- redo the menu effect somehow - check again the target times for maps - frontends: - auto test frontend, with no I/O, that will just internally run a series of @@ -44,6 +43,7 @@ fuck issue trackers :D =========== HANDLED ============== - should drifting make a sound? NO NEED +- redo the menu effect somehow - press forward map??? :-D only when physics is frozen - devtest map, internal camera: reversing at start makes the car face completely downwards which bugs the camera rotation! the shadow model too diff --git a/frontend_sdl.c b/frontend_sdl.c index 949d6a9..3147fed 100644 --- a/frontend_sdl.c +++ b/frontend_sdl.c @@ -24,6 +24,7 @@ #endif #include "frontend_helper.h" + #include "game.h" SDL_Window *window; diff --git a/make.sh b/make.sh index b1208d4..edc6592 100755 --- a/make.sh +++ b/make.sh @@ -1,4 +1,4 @@ -#/bin/sh +#!/bin/sh # Make script for Licar, just help run the compile command. Usage: # diff --git a/renderer.h b/renderer.h index 8d7df97..19c3041 100644 --- a/renderer.h +++ b/renderer.h @@ -1980,10 +1980,8 @@ void LCR_rendererDrawMenu(const char *tabName,const char **items, unsigned char itemCount,char selectedItem, char scroll) { #if !LCR_ANT_RESOLUTION -int stripHeight = (2 * LCR_EFFECTIVE_RESOLUTION_Y) / 11; -int stripHeight2 = LCR_EFFECTIVE_RESOLUTION_Y / 12; -// int stripHeight = (2 * LCR_EFFECTIVE_RESOLUTION_Y) / 7; -// int stripHeight2 = LCR_EFFECTIVE_RESOLUTION_Y / 9; + int stripHeight = (2 * LCR_EFFECTIVE_RESOLUTION_Y) / 11; + int stripHeight2 = LCR_EFFECTIVE_RESOLUTION_Y / 12; #else int stripHeight = 6; int stripHeight2 = 0; @@ -1991,7 +1989,7 @@ int stripHeight2 = LCR_EFFECTIVE_RESOLUTION_Y / 12; int i = 0; #if !(LCR_SETTING_POTATO_GRAPHICS || LCR_SETTING_332_COLOR) - uint16_t effect = LCR_renderer.frame >> 1; + uint16_t effect = LCR_renderer.frame >> 2; #endif LCR_LOG2("drawing menu"); @@ -2002,7 +2000,7 @@ int stripHeight2 = LCR_EFFECTIVE_RESOLUTION_Y / 12; #if LCR_SETTING_POTATO_GRAPHICS || LCR_SETTING_332_COLOR ); #else - ^ (effect & 0x41c3)); + ^ (effect & 0x1863) ^ (i & 0x1863)); effect += 5 + i % 4; #endif