Better conveyor physics / Performance test maps / Unit inventory begin
This commit is contained in:
@@ -18,6 +18,7 @@ public abstract class Unit extends SyncEntity {
|
||||
public static final float hitDuration = 9f;
|
||||
|
||||
public StatusController status = new StatusController();
|
||||
public UnitInventory inventory = new UnitInventory();
|
||||
public Team team = Team.blue;
|
||||
public Vector2 velocity = new Vector2();
|
||||
public float hitTime;
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
package io.anuke.mindustry.entities;
|
||||
|
||||
import io.anuke.mindustry.resource.*;
|
||||
|
||||
public class UnitInventory {
|
||||
public final AmmoEntry ammo = new AmmoEntry(AmmoType.getByID(0), 0);
|
||||
public final ItemStack item = new ItemStack(Item.getByID(0), 0);
|
||||
public final LiquidStack liquid = new LiquidStack(Liquid.getByID(0), 0);
|
||||
public float power = 0f;
|
||||
}
|
||||
@@ -26,8 +26,9 @@ public abstract class GroundUnitType extends UnitType{
|
||||
|
||||
public GroundUnitType(String name) {
|
||||
super(name);
|
||||
maxVelocity = 2f;
|
||||
maxVelocity = 1.1f;
|
||||
speed = 0.05f;
|
||||
drag = 0.4f;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user