Testlevel002 angepasst; Spieler stirbt nun auch wenn er oben aus der Map fliegt.; Neue Apk erstellt

This commit is contained in:
Armin Benz 2017-05-04 21:51:04 +02:00
parent 41de5a6147
commit 4c59816f5b
2 changed files with 2003 additions and 2002 deletions

File diff suppressed because it is too large Load Diff

View File

@ -13,6 +13,7 @@ import java.util.List;
import de.samdev.colorrunner.CRGame;
import de.samdev.colorrunner.game.world.entities.CRGameEntity;
import de.samdev.colorrunner.game.world.entities.gameentities.PlayerEntity;
import de.samdev.colorrunner.game.world.entities.gameentities.floor.FloorTileEntity;
import de.samdev.colorrunner.game.world.map.provider.MapProvider;
import de.samdev.colorrunner.input.GameInputListener;
import de.samdev.colorrunner.screens.gameScreen.GameScreen;
@ -80,7 +81,7 @@ public class CRGameWorld implements GameInputListener {
{
scoreMeter++;
}
if(player.getPosition().y < - 10)
if(player.getPosition().y < - FloorTileEntity.FLOORTILE_HEIGHT|| player.getPosition().y > 17 * FloorTileEntity.FLOORTILE_HEIGHT )
{
checkHighscore();
setTries();