transition

This commit is contained in:
2026-06-13 18:43:29 -05:00
parent 6818f0545a
commit 299570bec8
6 changed files with 254 additions and 20 deletions
+5 -1
View File
@@ -24,7 +24,11 @@ fn tick(dt) {
mover = """
fn init() {
if Registry.get("dancer_x") != () {
teleport(Registry.get("dancer_x"), Registry.get("dancer_y"));
let new_x = Registry.get("dancer_x");
let new_y = Registry.get("dancer_y");
if Me.x != new_x || Me.y != new_y {
teleport(new_x, new_y);
}
} else {
Registry.set("dancer_x", Me.x);
Registry.set("dancer_y", Me.y);