Throw in some music. Proof of concept. :/
We need to implement support for looping sounds and also stopping (all) running sounds, so we don't end up in a big mash-up of noise.
This commit is contained in:
parent
dd6e5a7f2c
commit
361377a567
BIN
res/music/ScooterFriendsTurbo8Bit.wav
Normal file
BIN
res/music/ScooterFriendsTurbo8Bit.wav
Normal file
Binary file not shown.
@ -9,6 +9,7 @@ import de.teamteamteam.spacescooter.background.StarBackground;
|
|||||||
import de.teamteamteam.spacescooter.control.Keyboard;
|
import de.teamteamteam.spacescooter.control.Keyboard;
|
||||||
import de.teamteamteam.spacescooter.entity.Player;
|
import de.teamteamteam.spacescooter.entity.Player;
|
||||||
import de.teamteamteam.spacescooter.gui.Button;
|
import de.teamteamteam.spacescooter.gui.Button;
|
||||||
|
import de.teamteamteam.spacescooter.sound.SoundSystem;
|
||||||
import de.teamteamteam.spacescooter.utility.GameConfig;
|
import de.teamteamteam.spacescooter.utility.GameConfig;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -35,6 +36,7 @@ public class MainMenuScreen extends Screen {
|
|||||||
player = new Player(GameConfig.windowWidth/2-170, 209);
|
player = new Player(GameConfig.windowWidth/2-170, 209);
|
||||||
player.setCanMove(false);
|
player.setCanMove(false);
|
||||||
player.setCanShoot(false);
|
player.setCanShoot(false);
|
||||||
|
SoundSystem.playSound("music/ScooterFriendsTurbo8Bit.wav");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user