By gameoverscreen able to typ a name

This commit is contained in:
Remco
2015-06-12 14:42:40 +02:00
parent 1a3f2cbc17
commit 336a3051ff
6 changed files with 158 additions and 34 deletions
+3
View File
@@ -169,6 +169,9 @@ public class PlayState extends GameState {
@Override
public void buttonPressed(ButtonEvent e) {
if(e.getButton().getButtonID() == 0){
lifePoints = 0;
}
boolean notHit = true;
Iterator<Enemy> enemysInPath = area.paths.get(player.getIndex()).getEnemysInPath().iterator();
while (enemysInPath.hasNext()) {