Cleanup
This commit is contained in:
@@ -249,10 +249,10 @@ public class MapEditorDialog extends Dialog implements Disposable{
|
||||
state.rules = Gamemode.editor.apply(lastSavedRules.copy());
|
||||
state.rules.sector = null;
|
||||
state.map = new Map(StringMap.of(
|
||||
"name", "Editor Playtesting",
|
||||
"width", editor.width(),
|
||||
"height", editor.height()
|
||||
));
|
||||
"name", "Editor Playtesting",
|
||||
"width", editor.width(),
|
||||
"height", editor.height()
|
||||
));
|
||||
world.endMapLoad();
|
||||
//add entities so they update. is this really needed?
|
||||
for(Tile tile : world.tiles){
|
||||
|
||||
@@ -17,29 +17,6 @@ import static mindustry.Vars.*;
|
||||
|
||||
public class Drawf{
|
||||
|
||||
//an experiment, to be removed
|
||||
public static void runes(float x, float y, int[] text){
|
||||
int height = 6, width = 5;
|
||||
float scale = 3;
|
||||
float th = height * scale, tw = width * scale;
|
||||
float skewx = width * scale, skewy = 0;
|
||||
|
||||
Draw.color(Pal.accent);
|
||||
|
||||
for(int i = 0; i < text.length; i++){
|
||||
float ox = x + i*tw*width;
|
||||
|
||||
for(int j = 0; j < width * height; j++){
|
||||
int cx = j % width, cy = j / width;
|
||||
float rx = ox + cx * tw + skewx * cy, ry = y + cy * th;
|
||||
|
||||
if((text[i] & (1 << j)) != 0){
|
||||
Fill.quad(rx, ry, rx + tw, ry, rx + tw + skewx, ry + th + skewy, rx + skewx, ry + th + skewy);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static float text(){
|
||||
float z = Draw.z();
|
||||
if(renderer.pixelator.enabled()){
|
||||
|
||||
Reference in New Issue
Block a user