Permalink
Browse files

Re entered my changes.

  • Loading branch information...
1 parent 1659a64 commit 98ca52f7ae85b8ab17ae02efa83483166f6f1318 @SubSage committed Mar 9, 2013
Showing with 6 additions and 1 deletion.
  1. +1 −1 GDCalaga/src/org/gdc/gdcalaga/Enemy.java
  2. +5 −0 GDCalaga/src/org/gdc/gdcalaga/PlayState.java
@@ -193,7 +193,7 @@ public void Collide(Entity other)
public void fire()
{
- Bullet newBullet = new Bullet(entities, (int)x, (int)y ,1 , alliance);
+ Bullet newBullet = new Bullet(entities, (int)x - width/2 + 3, (int)y ,1 , alliance);
newBullet.setSpeed(-250, 0);
audioManager.playSFX(AudioAsset.SFX_FIRE2);
}
@@ -55,6 +55,11 @@ public void update(GameContainer container, StateBasedGame game, int delta) thro
entities.update(delta);
+ if( ( Math.random()*100) < .1 )
+ {
+ ((Background)disObjs.get(0)).addRandomFloater();
+ }
+
if(input.isKeyDown(Input.KEY_W)){
player.moveUp(delta);
}

0 comments on commit 98ca52f

Please sign in to comment.