This commit is contained in:
Anuken
2019-06-17 15:45:10 -04:00
parent 2804361436
commit bc3405d11d
33 changed files with 2876 additions and 2864 deletions

View File

@@ -2,10 +2,7 @@ package io.anuke.mindustry.game;
import io.anuke.arc.Core;
/**
* Presets for time between waves.
* TODO specify correct time
*/
/** Presets for time between waves. Currently unused.*/
public enum Difficulty{
easy(1.4f),
normal(1f),

View File

@@ -113,7 +113,8 @@ public class ItemBridge extends Block{
float w = (link.x == x ? tilesize : Math.abs(link.x - x) * tilesize - tilesize);
float h = (link.y == y ? tilesize : Math.abs(link.y - y) * tilesize - tilesize);
Lines.rect((x + link.x) / 2f * tilesize - w / 2f, (y + link.y) / 2f * tilesize - h / 2f, w, h);
Fill.poly(link.x * tilesize + Geometry.d4[rot].x * tilesize, link.y * tilesize + Geometry.d4[rot].y * tilesize, 3, 2.8f, link.absoluteRelativeTo(x, y) * 90);
Draw.rect("bridge-poly", link.x * tilesize + Geometry.d4[rot].x * tilesize, link.y * tilesize + Geometry.d4[rot].y * tilesize, link.absoluteRelativeTo(x, y) * 90);
}
Draw.reset();
}