Added terrain exporting and importing
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
package io.anuke.mindustry.entities.units;
|
||||
|
||||
import io.anuke.mindustry.entities.Unit;
|
||||
import io.anuke.ucore.graphics.Draw;
|
||||
|
||||
public class FlyingUnitType extends UnitType {
|
||||
|
||||
public FlyingUnitType(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void draw(BaseUnit unit) {
|
||||
Draw.alpha(unit.hitTime / Unit.hitDuration);
|
||||
|
||||
Draw.rect(name, unit.x, unit.y, unit.rotation);
|
||||
|
||||
Draw.alpha(1f);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void behavior(BaseUnit unit) {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user