Added DEBUG Code for the NUKE

Fix Boss Spawn at the End of the Level
This commit is contained in:
JJTCM 2014-12-02 13:46:38 +01:00
parent 6be6a97306
commit d1caeb341a
2 changed files with 7 additions and 2 deletions

View File

@ -25,4 +25,4 @@ spawn:EnemyTwo,1,10,60
spawn:EnemyThree,2,4,33 spawn:EnemyThree,2,4,33
spawn:EnemyTwo,5,6,10 spawn:EnemyTwo,5,6,10
[25-30] [25-30]
spawn:EnemyBoss,1,1,100 spawn:EnemyBoss,1,1,50

View File

@ -10,6 +10,7 @@ import de.teamteamteam.spacescooter.entity.enemy.EnemyFour;
import de.teamteamteam.spacescooter.entity.enemy.EnemyOne; import de.teamteamteam.spacescooter.entity.enemy.EnemyOne;
import de.teamteamteam.spacescooter.entity.enemy.EnemyThree; import de.teamteamteam.spacescooter.entity.enemy.EnemyThree;
import de.teamteamteam.spacescooter.entity.enemy.EnemyTwo; import de.teamteamteam.spacescooter.entity.enemy.EnemyTwo;
import de.teamteamteam.spacescooter.entity.item.ItemNuke;
/** /**
* This is our main control input source. * This is our main control input source.
@ -102,7 +103,8 @@ public class Keyboard implements KeyListener {
Keyboard.activeKeys.add((Integer) e.getKeyCode()); Keyboard.activeKeys.add((Integer) e.getKeyCode());
for(KeyboardListener kl : Keyboard.listener) kl.keyPressed(e); for(KeyboardListener kl : Keyboard.listener) kl.keyPressed(e);
//Debug Spawn Enemy on Press //Debug Spawn Enemy on Press or Items
//TODO: Remove the Code when game is ready
if(e.getKeyCode() == KeyEvent.VK_1) { if(e.getKeyCode() == KeyEvent.VK_1) {
new EnemyOne(400,400); new EnemyOne(400,400);
} }
@ -118,6 +120,9 @@ public class Keyboard implements KeyListener {
points.add(new Point(10,300)); points.add(new Point(10,300));
new EnemyFour(700,51,points); new EnemyFour(700,51,points);
} }
if(e.getKeyCode() == KeyEvent.VK_9) {
new ItemNuke(400,400);
}
if(e.getKeyCode() == KeyEvent.VK_0) { if(e.getKeyCode() == KeyEvent.VK_0) {
new EnemyBoss(400,400); new EnemyBoss(400,400);
} }