Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
ovdh committed Apr 29, 2010
1 parent 18cae53 commit fbdb2b8
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion mario/Stages/Stage.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class Stage
private ArrayList<StageObject> mapObjects = new ArrayList<StageObject>();
private boolean resetMap = true;
private long fireBallTimer = System.currentTimeMillis();
private int fireBallTime = 500;
private int fireBallTime = 700;

public Stage(MarioWorld marioWorld)
{
Expand Down
7 changes: 6 additions & 1 deletion mario/Stages/StageMario.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,13 @@ public void doLoopAction()
{
if (jump || jumpExtra)
{
if(this.jumpExtra == false){
stage.getSound().playSound("/sound/jump.wav");
}
if (this.state != fallMario || jumpExtra)
{


setState(jumpMario);
this.jumpExtra = false;
// //System.out.println("jumpMario");
Expand Down Expand Up @@ -238,7 +243,7 @@ public void setUp(boolean up)
public void setJump(boolean jump)
{
this.jump = jump;
stage.getSound().playSound("/sound/jump.wav");

}

public void setDown(boolean down)
Expand Down
7 changes: 5 additions & 2 deletions mario/Stages/goombaGarden/GoombaGardenStart.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
public class GoombaGardenStart extends Map {

public GoombaGardenStart(MarioWorld marioWorld) {
super(marioWorld, Theme.JUNGLE, new Color(102, 133, 6));
super(marioWorld, Theme.JUNGLE, new Color(102, 133, 6), "/sound/background/Athletic.wav");


}
Expand Down Expand Up @@ -118,7 +118,10 @@ private void putObjects() {

map.put(12 * 135, new StageChoose[]{StageChoose.GROUNDLEFT, StageChoose.CLOUD});
map.put(12 * 136, new StageChoose[]{StageChoose.GROUNDMIDDLE, StageChoose.SMALLMUSSCHROOM});
map.put(12 * 140, new StageChoose[]{StageChoose.GROUNDRIGHT});
map.put(12 * 140, new StageChoose[]{StageChoose.GROUNDMIDDLE, StageChoose.SMALLMUSSCHROOM});
map.put(12 * 144, new StageChoose[]{StageChoose.GROUNDMIDDLE, StageChoose.SMALLMUSSCHROOM});
map.put(12 * 148, new StageChoose[]{StageChoose.GROUNDMIDDLE, StageChoose.SMALLMUSSCHROOM});
//map.put(12 * 140, new StageChoose[]{StageChoose.GROUNDRIGHT});
map.put(12 * 137, new StageChoose[]{StageChoose.END});
map.put(12 * 140, new StageChoose[]{StageChoose.NEXTMAP});

Expand Down
6 changes: 4 additions & 2 deletions mario/Stages/waterfall/WaterFallStart.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class WaterFallStart extends Map
{
public WaterFallStart(MarioWorld marioWorld)
{
super(marioWorld, Theme.SNOW, new Color(137, 136, 122));
super(marioWorld, Theme.SNOW, new Color(137, 136, 122), "/sound/background/Swimming.wav");
}

@Override
Expand Down Expand Up @@ -119,7 +119,9 @@ private void putObjects() {

map.put(12 * 135, new StageChoose[]{StageChoose.GROUNDLEFT, StageChoose.CLOUD});
map.put(12 * 136, new StageChoose[]{StageChoose.GROUNDMIDDLE, StageChoose.SMALLMUSSCHROOM});
map.put(12 * 140, new StageChoose[]{StageChoose.GROUNDRIGHT});
map.put(12 * 140, new StageChoose[]{StageChoose.GROUNDMIDDLE, StageChoose.SMALLMUSSCHROOM});
map.put(12 * 144, new StageChoose[]{StageChoose.GROUNDMIDDLE, StageChoose.SMALLMUSSCHROOM});
map.put(12 * 148, new StageChoose[]{StageChoose.GROUNDMIDDLE, StageChoose.SMALLMUSSCHROOM});
map.put(12 * 137, new StageChoose[]{StageChoose.END});
map.put(12 * 140, new StageChoose[]{StageChoose.NEXTMAP});

Expand Down
1 change: 1 addition & 0 deletions mario/enemy/Goomba.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ public void doCharacterCollision(ArrayList<Collision> collisions, StageObject st
if (stageObject instanceof Fireball) {
//setAlive(false);
doDead();
stage.getSound().playSound("/sound/deadGoomba.wav");

}
}
Expand Down

0 comments on commit fbdb2b8

Please sign in to comment.