Annotation processor for sound asset generation

This commit is contained in:
Anuken
2019-07-30 12:05:59 -04:00
parent bc77fd619d
commit a00a208ff8
4 changed files with 73 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ import io.anuke.mindustry.entities.bullet.*;
import io.anuke.mindustry.entities.traits.*;
import io.anuke.mindustry.entities.type.*;
import io.anuke.mindustry.gen.*;
import io.anuke.mindustry.gen.Sounds;
import io.anuke.mindustry.net.Net;
public class Weapon{
@@ -53,7 +54,7 @@ public class Weapon{
/** whether shooter rotation is ignored when shooting. */
public boolean ignoreRotation = false;
public Sound shootSound = Core.audio.newSound(Core.files.internal("sounds/shoot.ogg"));
public Sound shootSound = Sounds.die;
public TextureRegion region;