transition
This commit is contained in:
+5
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user