From f0e7ca8e33060ba9431909c9a7d9ee95747e8f2e Mon Sep 17 00:00:00 2001 From: Miloslav Ciz Date: Tue, 24 Jun 2025 21:50:25 +0200 Subject: [PATCH] Do some more polish --- README.md | 1 + TODO.txt | 4 ++-- general.h | 4 ++-- map.h | 11 +++++------ racing.h | 2 ++ 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 22c1d1a..fbe3644 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ The following is a draft of readme that will eventually be published, it may con ![](media/logo.png) ![](media/ss2.png) ![](media/ss10.png) +![](https://static.wikitide.net/commonswiki/0/03/Licar_platforms.jpg) For more detail see also the [game manual](media/manual.txt). diff --git a/TODO.txt b/TODO.txt index 557e853..01cc48a 100644 --- a/TODO.txt +++ b/TODO.txt @@ -23,8 +23,8 @@ fuck issue trackers :D - play all maps a lot DOING - correct saving of replays etc. - empty and large data file KINDA DID - - FPS on each platform - - try to use the racing module by itself + - FPS on each platform WEEELLL + - try to use the racing module by itself BRIEFLY DID, COMPILES - spellcheck comments KINDA DID - test a map without any CPs where the car starts at finish WORKS BUT NOT REP - just read through the code and eyeball it DOING diff --git a/general.h b/general.h index 1446b66..8c389af 100644 --- a/general.h +++ b/general.h @@ -46,11 +46,11 @@ #define LCR_LOG0_NUM(x) ; #endif -#ifndef LCR_LOG1 +#ifndef LCR_LOG1_NUM #define LCR_LOG1_NUM(x) ; #endif -#ifndef LCR_LOG2 +#ifndef LCR_LOG2_NUM #define LCR_LOG2_NUM(x) ; #endif diff --git a/map.h b/map.h index 3f64ca4..615ac65 100644 --- a/map.h +++ b/map.h @@ -9,7 +9,7 @@ Map coordinates/size: - map size is 64x64x64 blocks - - [0,0,0] is is bottom-left-front-most + - [0,0,0] is bottom-left-front-most - x goes right, y goes up, z goes forward - coordinate number is a single number obtained as x + 64 * y + 64 * 64 * z @@ -276,9 +276,9 @@ void LCR_rampGetDimensions(uint8_t rampType, uint8_t *height4ths, } /** - Adds given block to current map, including possibly deleting a block by - adding LCR_BLOCK_NONE. The function handles sorting the block to the right - position. Returns 1 if successful, else 0. + Adds given block to current map, including possibly deleting a block by adding + LCR_BLOCK_NONE. The function handles sorting the block to the right position. + Returns 1 if successful, else 0. */ uint8_t _LCR_mapAddBlock(const uint8_t block[LCR_BLOCK_SIZE]) { @@ -394,8 +394,7 @@ void _LCR_mapComputeHash(void) Same as LCR_mapGetBlockAt, but allows to specify start and end block of the of the search to make it faster. */ -int LCR_mapGetBlockAtFast(uint8_t x, uint8_t y, uint8_t z, - int start, int end) +int LCR_mapGetBlockAtFast(uint8_t x, uint8_t y, uint8_t z, int start, int end) { // binary search (the blocks are sorted) diff --git a/racing.h b/racing.h index 67e00c8..0824354 100644 --- a/racing.h +++ b/racing.h @@ -52,6 +52,8 @@ version. */ +#include + typedef int32_t LCR_GameUnit; ///< Abstract game unit. #define LCR_RACING_FPS 30 /**< Physics FPS, i.e. the number of