Bugfix: EndlessGame stürzt nicht mehr ab; Oben hinaus springen nicht mehr möglich

This commit is contained in:
Armin Benz 2017-05-05 17:40:03 +02:00
parent 4c59816f5b
commit 306cd62912
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ public class CRGameWorld implements GameInputListener {
{
scoreMeter++;
}
if(player.getPosition().y < - FloorTileEntity.FLOORTILE_HEIGHT|| player.getPosition().y > 17 * FloorTileEntity.FLOORTILE_HEIGHT )
if(player.getPosition().y < - FloorTileEntity.FLOORTILE_HEIGHT|| player.getPosition().y > 16 * FloorTileEntity.FLOORTILE_HEIGHT )
{
checkHighscore();
setTries();

View File

@ -55,7 +55,7 @@ public class EndlessMapProvider extends MapProvider {
return TriggerType.RUNTOP;
else if( sections.get(i).crTiledMap.interaktionen[x - start][y] == CRTiledMap.GID_INTER_RIGHT)
return TriggerType.FLY;
else if(sections.get(i).crTiledMap.interaktionen[x][y] == 0)
else if(sections.get(i).crTiledMap.interaktionen[x - start][y] == 0)
return TriggerType.NOTHING;
else {
Gdx.app.error("MapProvider", "Unknown trigger: " + sections.get(i).crTiledMap.interaktionen[x][y]);