Create some test icons

This commit is contained in:
2022-08-23 14:54:30 +02:00
parent 329e8a18c5
commit a6c0eebba2
5 changed files with 10 additions and 1 deletions

View File

@@ -117,4 +117,12 @@ public abstract class BaseMapHandler implements MapHandler {
this.spawners.add(spawner);
return spawner;
}
public void icon(int x, int y, String iconSetUid, int row, int column) {
var icon = context.createIcon(iconSetUid, row, column);
icon.setScale(1f);
icon.setZIndex(-1);
icon.setCoordinates(x, y);
mainLayer.addEntity(icon);
}
}