Skip to content

Commit

Permalink
sound fix and rocket fix
Browse files Browse the repository at this point in the history
  • Loading branch information
undermink committed Oct 1, 2012
1 parent 36004e6 commit dd3d441
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions defend/src/com/cdm/view/SoundScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public SoundScreen(Game pgame) {
music1 = Gdx.audio.newMusic(Gdx.files.internal("data/level02.ogg"));
music2 = Gdx.audio.newMusic(Gdx.files.internal("data/level03.ogg"));
music = music1;
music.setLooping(true);
game = pgame;
gui.add(new BigButton(Gdx.graphics.getWidth() / 3 + 50, 300,
Gdx.graphics.getWidth() / 6, 50, "music on", "on", this));
Expand Down Expand Up @@ -153,6 +154,7 @@ public static void playSong(int id) {
if (song == 3)
music = music2;
music.setVolume(vol);
music.setLooping(true);
music.play();
}

Expand Down
2 changes: 1 addition & 1 deletion defend/src/com/cdm/view/enemy/types/Rocket.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void move(float time) {

Vector3 delta = p.to(endPosition);
delta.nor();
//angle = MathTools.angle(delta);
angle = MathTools.angle(delta)+180;
float speed = getSpeed();
p.x += delta.x * speed * time;
p.y += delta.y * speed * time;
Expand Down

0 comments on commit dd3d441

Please sign in to comment.