Continue level

This commit is contained in:
Miloslav Číž 2020-03-02 21:47:28 +01:00
parent f210113f4f
commit 2ccabcc6f6
4 changed files with 9 additions and 3 deletions

View File

@ -23,7 +23,10 @@ elementTypes = [
"CARD0",
"CARD1",
"CARD2",
"LOCK0"
"LOCK0",
"LOCK1",
"LOCK2",
"BLOCKER"
]
propertyTypes = [

BIN
assets/levelX.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

7
main.c
View File

@ -1023,9 +1023,12 @@ RCL_Unit SFG_floorHeightAt(int16_t x, int16_t y)
}
else if (properties == SFG_TILE_PROPERTY_ELEVATOR)
{
RCL_Unit height =
SFG_TILE_FLOOR_HEIGHT(tile) * SFG_WALL_HEIGHT_STEP;
return SFG_movingWallHeight(
SFG_TILE_FLOOR_HEIGHT(tile) * SFG_WALL_HEIGHT_STEP,
SFG_TILE_CEILING_HEIGHT(tile) * SFG_WALL_HEIGHT_STEP,
height,
height + SFG_TILE_CEILING_HEIGHT(tile) * SFG_WALL_HEIGHT_STEP,
SFG_game.frameTime - SFG_currentLevel.timeStart);
}