Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Re entered my changes.

  • Loading branch information...
commit 98ca52f7ae85b8ab17ae02efa83483166f6f1318 1 parent 1659a64
Luis Martinez authored
2  GDCalaga/src/org/gdc/gdcalaga/Enemy.java
View
@@ -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);
}
5 GDCalaga/src/org/gdc/gdcalaga/PlayState.java
View
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.