This commit is contained in:
Anuken
2019-08-13 12:04:09 -04:00
parent bff9d89232
commit f2f6dc89a2
5 changed files with 17 additions and 15 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 165 B

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
core/assets/sounds/fire.ogg Normal file

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 676 KiB

After

Width:  |  Height:  |  Size: 676 KiB

View File

@@ -1,21 +1,18 @@
package io.anuke.mindustry.entities.effect; package io.anuke.mindustry.entities.effect;
import io.anuke.annotations.Annotations.Remote; import io.anuke.annotations.Annotations.*;
import io.anuke.arc.collection.IntMap; import io.anuke.arc.collection.*;
import io.anuke.arc.math.Mathf; import io.anuke.arc.math.*;
import io.anuke.arc.math.geom.Geometry; import io.anuke.arc.math.geom.*;
import io.anuke.arc.math.geom.Point2; import io.anuke.arc.util.*;
import io.anuke.arc.util.Structs;
import io.anuke.arc.util.Time;
import io.anuke.mindustry.content.*; import io.anuke.mindustry.content.*;
import io.anuke.mindustry.entities.*; import io.anuke.mindustry.entities.*;
import io.anuke.mindustry.entities.impl.TimedEntity; import io.anuke.mindustry.entities.impl.*;
import io.anuke.mindustry.entities.traits.SaveTrait; import io.anuke.mindustry.entities.traits.*;
import io.anuke.mindustry.entities.traits.SyncTrait; import io.anuke.mindustry.entities.type.*;
import io.anuke.mindustry.entities.type.TileEntity; import io.anuke.mindustry.game.*;
import io.anuke.mindustry.game.TypeID; import io.anuke.mindustry.gen.*;
import io.anuke.mindustry.gen.Call; import io.anuke.mindustry.net.*;
import io.anuke.mindustry.net.Net;
import io.anuke.mindustry.world.*; import io.anuke.mindustry.world.*;
import java.io.*; import java.io.*;
@@ -102,6 +99,10 @@ public class Fire extends TimedEntity implements SaveTrait, SyncTrait{
Effects.effect(Fx.fireSmoke, x + Mathf.range(4f), y + Mathf.range(4f)); Effects.effect(Fx.fireSmoke, x + Mathf.range(4f), y + Mathf.range(4f));
} }
if(Mathf.chance(0.001 * Time.delta())){
Sounds.fire.at(this);
}
time = Mathf.clamp(time + Time.delta(), 0, lifetime()); time = Mathf.clamp(time + Time.delta(), 0, lifetime());
map.put(tile.pos(), this); map.put(tile.pos(), this);

View File

@@ -159,7 +159,8 @@ public class MenuFragment extends Fragment{
new Buttoni("$campaign", "icon-play-2", ui.deploy::show), new Buttoni("$campaign", "icon-play-2", ui.deploy::show),
new Buttoni("$joingame", "icon-add", ui.join::show), new Buttoni("$joingame", "icon-add", ui.join::show),
new Buttoni("$customgame", "icon-editor", ui.custom::show), new Buttoni("$customgame", "icon-editor", ui.custom::show),
new Buttoni("$loadgame", "icon-load", ui.load::show) new Buttoni("$loadgame", "icon-load", ui.load::show),
new Buttoni("$tutorial", "icon-info", control::playTutorial)
), ),
new Buttoni("$editor", "icon-editor", ui.maps::show), new Buttoni("$editor", "icon-editor", ui.maps::show),
new Buttoni("$settings", "icon-tools", ui.settings::show), new Buttoni("$settings", "icon-tools", ui.settings::show),