Bugfix: EndlessGame stürzt nicht mehr ab; Oben hinaus springen nicht mehr möglich
This commit is contained in:
parent
4c59816f5b
commit
306cd62912
@ -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();
|
||||
|
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user