|
@@ -136,7 +136,14 @@ class CodeBox {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- this.SetPointer(this.curr_direction[0], this.curr_direction[1]);
|
|
|
+ this.Move();
|
|
|
+ }
|
|
|
+
|
|
|
+ Move() {
|
|
|
+ const newX = this.pointer[0] + this.curr_direction[0];
|
|
|
+ const newY = this.pointer[1] + this.curr_direction[1];
|
|
|
+
|
|
|
+ this.SetPointer(newX, newY);
|
|
|
}
|
|
|
|
|
|
/**
|