Do some more polish
This commit is contained in:
parent
c0fddf7631
commit
f0e7ca8e33
5 changed files with 12 additions and 10 deletions
|
@ -9,6 +9,7 @@ The following is a draft of readme that will eventually be published, it may con
|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
|

|
||||||
|
|
||||||
For more detail see also the [game manual](media/manual.txt).
|
For more detail see also the [game manual](media/manual.txt).
|
||||||
|
|
||||||
|
|
4
TODO.txt
4
TODO.txt
|
@ -23,8 +23,8 @@ fuck issue trackers :D
|
||||||
- play all maps a lot DOING
|
- play all maps a lot DOING
|
||||||
- correct saving of replays etc.
|
- correct saving of replays etc.
|
||||||
- empty and large data file KINDA DID
|
- empty and large data file KINDA DID
|
||||||
- FPS on each platform
|
- FPS on each platform WEEELLL
|
||||||
- try to use the racing module by itself
|
- try to use the racing module by itself BRIEFLY DID, COMPILES
|
||||||
- spellcheck comments KINDA DID
|
- spellcheck comments KINDA DID
|
||||||
- test a map without any CPs where the car starts at finish WORKS BUT NOT REP
|
- 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
|
- just read through the code and eyeball it DOING
|
||||||
|
|
|
@ -46,11 +46,11 @@
|
||||||
#define LCR_LOG0_NUM(x) ;
|
#define LCR_LOG0_NUM(x) ;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef LCR_LOG1
|
#ifndef LCR_LOG1_NUM
|
||||||
#define LCR_LOG1_NUM(x) ;
|
#define LCR_LOG1_NUM(x) ;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef LCR_LOG2
|
#ifndef LCR_LOG2_NUM
|
||||||
#define LCR_LOG2_NUM(x) ;
|
#define LCR_LOG2_NUM(x) ;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
11
map.h
11
map.h
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
Map coordinates/size:
|
Map coordinates/size:
|
||||||
- map size is 64x64x64 blocks
|
- 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
|
- x goes right, y goes up, z goes forward
|
||||||
- coordinate number is a single number obtained as x + 64 * y + 64 * 64 * z
|
- 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
|
Adds given block to current map, including possibly deleting a block by adding
|
||||||
adding LCR_BLOCK_NONE. The function handles sorting the block to the right
|
LCR_BLOCK_NONE. The function handles sorting the block to the right position.
|
||||||
position. Returns 1 if successful, else 0.
|
Returns 1 if successful, else 0.
|
||||||
*/
|
*/
|
||||||
uint8_t _LCR_mapAddBlock(const uint8_t block[LCR_BLOCK_SIZE])
|
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
|
Same as LCR_mapGetBlockAt, but allows to specify start and end block of the
|
||||||
of the search to make it faster.
|
of the search to make it faster.
|
||||||
*/
|
*/
|
||||||
int LCR_mapGetBlockAtFast(uint8_t x, uint8_t y, uint8_t z,
|
int LCR_mapGetBlockAtFast(uint8_t x, uint8_t y, uint8_t z, int start, int end)
|
||||||
int start, int end)
|
|
||||||
{
|
{
|
||||||
// binary search (the blocks are sorted)
|
// binary search (the blocks are sorted)
|
||||||
|
|
||||||
|
|
2
racing.h
2
racing.h
|
@ -52,6 +52,8 @@
|
||||||
version.
|
version.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
typedef int32_t LCR_GameUnit; ///< Abstract game unit.
|
typedef int32_t LCR_GameUnit; ///< Abstract game unit.
|
||||||
|
|
||||||
#define LCR_RACING_FPS 30 /**< Physics FPS, i.e. the number of
|
#define LCR_RACING_FPS 30 /**< Physics FPS, i.e. the number of
|
||||||
|
|
Loading…
Reference in a new issue