Update levels

merge-requests/2/head
Miloslav Číž 2020-10-05 17:11:10 +02:00
parent 065b7aa21c
commit 50a3de2934
5 changed files with 15 additions and 8 deletions

View File

@ -131,10 +131,6 @@ level ideas:
bugs:
- On desktop, SDL makes a high-pitched noise because of DC offset. Maybe put an
average DC offset for each track into assets so that music player can use this
to normalize the track?
done:
- add headbob
@ -195,6 +191,11 @@ done:
- Player jumps higher on lower FPS, is able to jump on 4 squares. Also check the
distance jump.
- disable transparency for walls for performance (setting)?
- On desktop, SDL makes a high-pitched noise because of DC offset. Maybe put an
average DC offset for each track into assets so that music player can use this
to normalize the track?
- Player is sometimes squeezed to death in door (appeared in level 9).
Investigate, fix.
scratched:
- option for disabling wall transparency, for performance?

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

10
game.h
View File

@ -3623,14 +3623,20 @@ void SFG_gameStepPlaying()
SFG_getMapRevealBit(
SFG_player.squarePosition[0],
SFG_player.squarePosition[1]);
uint8_t properties;
SFG_getMapTile(SFG_currentLevel.levelPointer,SFG_player.squarePosition[0],
SFG_player.squarePosition[1],&properties);
if ( // squeezer check
(SFG_ceilingHeightAt(
(properties == SFG_TILE_PROPERTY_SQUEEZER) &&
((SFG_ceilingHeightAt(
SFG_player.squarePosition[0],SFG_player.squarePosition[1]) -
SFG_floorHeightAt(
SFG_player.squarePosition[0],SFG_player.squarePosition[1]))
<
(RCL_CAMERA_COLL_HEIGHT_ABOVE + RCL_CAMERA_COLL_HEIGHT_BELOW))
(RCL_CAMERA_COLL_HEIGHT_ABOVE + RCL_CAMERA_COLL_HEIGHT_BELOW)))
{
SFG_LOG("player is squeezed");
SFG_player.health = 0;

View File

@ -29,8 +29,8 @@
// #define SFG_START_LEVEL 1
// #define SFG_IMMORTAL 1
#define SFG_UNLOCK_DOOR 1
#define SFG_REVEAL_MAP 1
// #define SFG_UNLOCK_DOOR 1
// #define SFG_REVEAL_MAP 1
// #define SFG_INFINITE_AMMO 1
#define SFG_SCREEN_RESOLUTION_X 800