Sound.
This commit is contained in:
Binary file not shown.
@@ -4,6 +4,7 @@ import io.anuke.arc.Core;
|
|||||||
import io.anuke.arc.collection.*;
|
import io.anuke.arc.collection.*;
|
||||||
import io.anuke.arc.files.FileHandle;
|
import io.anuke.arc.files.FileHandle;
|
||||||
import io.anuke.arc.graphics.Texture;
|
import io.anuke.arc.graphics.Texture;
|
||||||
|
import io.anuke.arc.util.*;
|
||||||
import io.anuke.mindustry.Vars;
|
import io.anuke.mindustry.Vars;
|
||||||
import io.anuke.mindustry.game.*;
|
import io.anuke.mindustry.game.*;
|
||||||
import io.anuke.mindustry.io.JsonIO;
|
import io.anuke.mindustry.io.JsonIO;
|
||||||
@@ -71,6 +72,7 @@ public class Map implements Comparable<Map>{
|
|||||||
|
|
||||||
/** Returns the generation filters that this map uses on load.*/
|
/** Returns the generation filters that this map uses on load.*/
|
||||||
public Array<GenerateFilter> filters(){
|
public Array<GenerateFilter> filters(){
|
||||||
|
Log.info(build);
|
||||||
if(build != -1 && build < 83 && tags.get("genfilters", "").isEmpty()){
|
if(build != -1 && build < 83 && tags.get("genfilters", "").isEmpty()){
|
||||||
return Array.with();
|
return Array.with();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,8 +52,6 @@ public class Weapon{
|
|||||||
/** whether shooter rotation is ignored when shooting. */
|
/** whether shooter rotation is ignored when shooting. */
|
||||||
public boolean ignoreRotation = false;
|
public boolean ignoreRotation = false;
|
||||||
|
|
||||||
// public Sound sound = Core.audio.newSound(Core.files.internal("sounds/shoot.ogg"));
|
|
||||||
|
|
||||||
public TextureRegion region;
|
public TextureRegion region;
|
||||||
|
|
||||||
protected Weapon(String name){
|
protected Weapon(String name){
|
||||||
@@ -90,7 +88,6 @@ public class Weapon{
|
|||||||
float baseX = shooter.getX(), baseY = shooter.getY();
|
float baseX = shooter.getX(), baseY = shooter.getY();
|
||||||
|
|
||||||
Weapon weapon = shooter.getWeapon();
|
Weapon weapon = shooter.getWeapon();
|
||||||
//weapon.sound.play(1f);
|
|
||||||
|
|
||||||
sequenceNum = 0;
|
sequenceNum = 0;
|
||||||
if(weapon.shotDelay > 0.01f){
|
if(weapon.shotDelay > 0.01f){
|
||||||
|
|||||||
Reference in New Issue
Block a user