Testlevel002 angepasst; Spieler stirbt nun auch wenn er oben aus der Map fliegt.; Neue Apk erstellt
This commit is contained in:
parent
41de5a6147
commit
4c59816f5b
File diff suppressed because it is too large
Load Diff
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user