new lantern graphic and things

This commit is contained in:
minjaesong
2021-08-04 15:02:48 +09:00
parent 6891d6b840
commit 7b029126f3
10 changed files with 138 additions and 277 deletions

View File

@@ -114,7 +114,7 @@ public class CSVEditor extends JFrame {
if (discardAgreed()) {
// actually read file
JFileChooser fileChooser = new JFileChooser() {
JFileChooser fileChooser = new JFileChooser("./") {
{
setFileSelectionMode(JFileChooser.FILES_ONLY);
setMultiSelectionEnabled(false);
@@ -189,7 +189,7 @@ public class CSVEditor extends JFrame {
add("Save...").addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
JFileChooser fileChooser = new JFileChooser() {
JFileChooser fileChooser = new JFileChooser("./") {
{
setFileSelectionMode(JFileChooser.FILES_ONLY);
setMultiSelectionEnabled(false);

View File

@@ -56,7 +56,7 @@ class WireActor(id: ActorID) : ActorWithBody(RenderOrder.WIRES, PhysProperties.I
this.worldY = worldY
setPosition((worldX + 0.5) * TILE_SIZE, (worldY + 1.0) * TILE_SIZE - 1.0) // what the fuck?
sprite!!.currentRow = 1
sprite!!.currentRow = 0
val nearbyTiles = getNearbyTilesPos(worldX, worldY).map { world.getAllWiresFrom(it.x, it.y) }
var ret = 0