This commit is contained in:
2026-06-21 22:04:10 -05:00
parent 475534f7c4
commit 87979ac610
7 changed files with 134 additions and 255 deletions
+15 -2
View File
@@ -167,6 +167,18 @@ fn tick(dt) {
}
"""
shifter = """
fn tick(dt) {
let x = Me.x;
let y = Me.y;
if Queue.length() == 0 {
shift([[x-1, y], [x, y-1], [x+1, y], [x, y+1]]);
delay(0.25);
}
}
"""
[boards.start.map]
name = "Starting Room"
width = 60
@@ -214,8 +226,8 @@ gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg
content = """
############################################################
# #
# #
# #
# o #
# oS #
# #
# 1 #
# ###### B #
@@ -252,6 +264,7 @@ content = """
"V" = { kind = "object", tile = 1, fg = "#33aa33", bg = "#000000", script_name = "mover" }
"M" = { kind = "object", tile = 15, fg = "#ffdd88", bg = "#000000", solid = true, name = "muffin", script_name = "muffin" }
"B" = { kind = "object", tile = 240, fg = "#cc9944", bg = "#000000", solid = true, name = "noticeboard", script_name = "noticeboard" }
"S" = { kind = "object", tile = 240, fg = "#cc9944", bg = "#000000", solid = true, name = "shifter", script_name = "shifter" }
"/" = { kind = "spinner_cw" }
"t" = { kind = "gem" }