Updated the core landing sound and added a launch sound (#9802)

* Added core launch sound and remade the land sound,

* Updated the land.ogg to use Synth Pad 3

* Added saw

* Updated
This commit is contained in:
Leo 2024-05-03 00:56:09 +05:00 committed by GitHub
parent d9ea8beae2
commit 143db64710
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 11 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@ -2,6 +2,7 @@ package mindustry.core;
import arc.*;
import arc.assets.loaders.TextureLoader.*;
import arc.audio.*;
import arc.files.*;
import arc.graphics.*;
import arc.graphics.Texture.*;
@ -554,6 +555,11 @@ public class Renderer implements ApplicationListener{
landTime = landCore.landDuration();
launchCoreType = coreType;
Music music = landCore.launchMusic();
music.stop();
music.play();
music.setVolume(settings.getInt("musicvol") / 100f);
landCore.beginLaunch(coreType);
}

View File

@ -51,6 +51,7 @@ public class CoreBlock extends StorageBlock{
public UnitType unitType = UnitTypes.alpha;
public float landDuration = 160f;
public Music landMusic = Musics.land;
public Music launchMusic = Musics.coreLaunch;
public Effect launchEffect = Fx.launch;
public Interp landZoomInterp = Interp.pow3;
@ -333,6 +334,10 @@ public class CoreBlock extends StorageBlock{
return landMusic;
}
public Music launchMusic(){
return launchMusic;
}
@Override
public void draw(){
//draw thrusters when just landed