瀏覽代碼

Reset code box's direction on run

ApisNecros 1 年之前
父節點
當前提交
c46c2c6a1b
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      starfish.js

+ 1 - 0
starfish.js

@@ -96,6 +96,7 @@ class CodeBox {
         // Reset some field for a clean run
         this.box = [];
         this.pointer = [0, 0];
+        this.curr_direction = this.directions.EAST;
         this.outputDOM.value = "";
 
         const cbRaw = this.codeBoxDOM.value;