Browse Source

Update levels

merge-requests/2/head
Miloslav Číž 3 years ago
parent
commit
50a3de2934
  1. 9
      TODO.txt
  2. BIN
      assets/level2.gif
  3. BIN
      assets/level8.gif
  4. 10
      game.h
  5. 4
      main_sdl.c

9
TODO.txt

@ -131,10 +131,6 @@ level ideas: @@ -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: @@ -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?

BIN
assets/level2.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

BIN
assets/level8.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

10
game.h

@ -3623,14 +3623,20 @@ void SFG_gameStepPlaying() @@ -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;

4
main_sdl.c

@ -29,8 +29,8 @@ @@ -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

Loading…
Cancel
Save