Skip to content
Permalink
Browse files

Fixed a few more things

  • Loading branch information
jdm13003 committed Apr 27, 2016
1 parent f9ae420 commit f0529ace365dc7a12a997db6e1aaa84ac2a3819d
@@ -37,7 +37,6 @@ public void createEnemy(int enemy_count){




public void createSD(int SDcount){
for(int n = 0; n < SDcount; n++){
addEntity(new StarDestroyer(810, r.nextInt(400), skin, this, game));
@@ -55,6 +55,7 @@ public void tick(){
game.setScore(game.getScore()+10);
}
}

}
public void render(Graphics g){
g.drawImage(skin.enemy1, (int)x, (int)y, null);
@@ -50,6 +50,12 @@ else if(mx >= 610 && mx <= 650 && my >= 540 && my <= 580)
Game.padraicmode = true;
Game.State = Game.STATE.GAME;
}
else if(mx >= 0 && mx <= 40 && my >= 0 && my <= 40)
{
Game.numberOfPlayers = 2;
Game.padraicmode = true;
Game.State = Game.STATE.GAME;
}
}

}
@@ -44,7 +44,7 @@ public void tick(){
if(GamePhysics.Collision(this, tempa)){
if(health == 1){
game.State = game.State.END;
health = 3;
health = 4;
}
else{
health--;
@@ -45,7 +45,7 @@ public void tick(){
if(health == 1){
controller.removeEntity(this);
game.State = game.State.END;
health = 4;
health = 5;
}
else{
health--;
@@ -48,6 +48,7 @@ public void tick(){
}
}


}
public void shoot(){
if(is_shooting == 0){

0 comments on commit f0529ac

Please sign in to comment.
You can’t perform that action at this time.