transporters

This commit is contained in:
2026-07-08 10:06:25 -05:00
parent e43dae54a8
commit f407b5d9a6
14 changed files with 323 additions and 34 deletions
+6 -3
View File
@@ -28,7 +28,7 @@ fn init(me) {
let new_x = Board.registry.get("dancer_x");
let new_y = Board.registry.get("dancer_y");
if me.x != new_x || me.y != new_y {
teleport(new_x, new_y);
teleport(me.id, new_x, new_y);
}
} else {
Board.registry.set("dancer_x", me.x);
@@ -231,9 +231,9 @@ content = """
# oS #
# #
# 1 #
# ###### B #
# )######( B #
# # #
# +++ # #
# +++ # v #
# # #
# | #
# #
@@ -268,6 +268,9 @@ content = """
"S" = { kind = "object", tile = 240, fg = "#cc9944", bg = "#000000", solid = true, name = "shifter", script_name = "shifter" }
"/" = { kind = "spinner_cw" }
"t" = { kind = "gem" }
"v" = { kind = "transporter_south" }
")" = { kind = "transporter_east" }
"(" = { kind = "transporter_west" }
# Layer 2: a purely decorative, non-solid object drawn *above* the solid crate
# beneath it — only possible because draw order follows layer order.