{
 "原理:觸控輸入如何變成遊戲動作#1": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   1,
   3,
   5
  ],
  "nodes": [
   {
    "label": "手指觸控",
    "sub": "玩家點螢幕"
   },
   {
    "label": "作業系統",
    "sub": "收到觸控"
   },
   {
    "label": "Flutter",
    "sub": "指標事件"
   },
   {
    "label": "Flame 元件",
    "sub": "收到事件"
   },
   {
    "label": "遊戲動作",
    "sub": "揮棒或投球"
   }
  ]
 },
 "原理:觸控輸入如何變成遊戲動作#2": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   4
  ],
  "nodes": [
   {
    "label": "按下 down",
    "sub": "記下起點"
   },
   {
    "label": "移動 move",
    "sub": "可能很多次"
   },
   {
    "label": "抬起 up",
    "sub": "正常結束"
   },
   {
    "label": "取消 cancel",
    "sub": "系統收回手指",
    "color": "#e5484d"
   }
  ]
 },
 "原理:觸控輸入如何變成遊戲動作#5": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   3,
   3
  ],
  "cards": [
   {
    "title": "螢幕座標",
    "points": [
     "單位 dp",
     "左上角為原點"
    ]
   },
   {
    "title": "畫布座標",
    "points": [
     "元件自己的座標",
     "原點在元件左上角"
    ]
   },
   {
    "title": "虛擬座標",
    "points": [
     "你設計的球場",
     "與螢幕大小無關"
    ]
   }
  ]
 },
 "原理:觸控輸入如何變成遊戲動作#6": {
  "type": "table",
  "head": [
   "項目",
   "示範值"
  ],
  "widths": [
   3,
   3
  ],
  "reveal": [
   0,
   1,
   3,
   4
  ],
  "rows": [
   [
    "虛擬畫面",
    "1280 × 720"
   ],
   [
    "可用區域",
    "750 × 369 dp"
   ],
   [
    "縮放比例",
    "0.5125"
   ],
   [
    "48 dp 按鈕",
    "約 93.7 單位"
   ]
  ]
 },
 "原理:觸控輸入如何變成遊戲動作#7": {
  "type": "cards",
  "reveal": [
   0,
   0,
   1,
   2,
   3
  ],
  "cards": [
   {
    "title": "pitching",
    "points": [
     "投球",
     "拖曳瞄準"
    ]
   },
   {
    "title": "batting",
    "points": [
     "打擊",
     "點擊揮棒"
    ]
   },
   {
    "title": "menu",
    "points": [
     "暫停選單",
     "不接受遊戲輸入"
    ]
   }
  ]
 },
 "觀念教學:點擊揮棒與時機判定#1": {
  "type": "table",
  "head": [
   "名詞",
   "意思"
  ],
  "widths": [
   2,
   5
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   4
  ],
  "rows": [
   [
    "arrive",
    "球可被打到的那一刻"
   ],
   [
    "tap",
    "觸控事件被收到的那一刻"
   ],
   [
    "d",
    "tap − arrive,負太早、正太晚"
   ],
   [
    "w(半窗)",
    "|d| ≤ w 才算揮到"
   ]
  ]
 },
 "觀念教學:點擊揮棒與時機判定#4": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   3,
   6
  ],
  "nodes": [
   {
    "label": "算時間差",
    "sub": "扣除延遲補償"
   },
   {
    "label": "完美",
    "sub": "≤ 半窗 × 0.25"
   },
   {
    "label": "打到",
    "sub": "goodEarly / Late"
   },
   {
    "label": "揮空",
    "sub": "whiffEarly / Late",
    "color": "#e5484d"
   }
  ]
 },
 "觀念教學:點擊揮棒與時機判定#5": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   3,
   3
  ],
  "cards": [
   {
    "title": "同一把尺",
    "points": [
     "球位置與抵達時間",
     "都用遊戲時鐘"
    ]
   },
   {
    "title": "暫停安全",
    "points": [
     "暫停時鐘不前進"
    ]
   },
   {
    "title": "可重播",
    "points": [
     "記成第幾步揮棒"
    ]
   }
  ]
 },
 "觀念教學:拖曳瞄準投球#1": {
  "type": "flow",
  "layout": "row",
  "avatar": "hide",
  "reveal": [
   0,
   0,
   0,
   5,
   5,
   5
  ],
  "nodes": [
   {
    "label": "按下",
    "sub": "記起點"
   },
   {
    "label": "移動",
    "sub": "算位移"
   },
   {
    "label": "正規化",
    "sub": "−1 到 1"
   },
   {
    "label": "顯示",
    "sub": "瞄準點"
   },
   {
    "label": "放開",
    "sub": "送出"
   }
  ]
 },
 "觀念教學:拖曳瞄準投球#7": {
  "type": "bar",
  "avatar": "hide",
  "reveal": [
   0,
   0,
   1,
   2,
   3,
   4,
   5
  ],
  "labels": [
   "5 dp",
   "20 dp",
   "50 dp",
   "100 dp",
   "150 dp"
  ],
  "values": [
   0,
   0.2,
   0.5,
   1,
   1
  ],
  "unit": "",
  "highlight": 4
 },
 "觀念教學:HUD、選單與暫停#2": {
  "type": "table",
  "head": [
   "項目",
   "內容"
  ],
  "widths": [
   2,
   5
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   4
  ],
  "rows": [
   [
    "比分",
    "雙方隊名簡稱與分數"
   ],
   [
    "局數",
    "例如 3 局上"
   ],
   [
    "球數",
    "壞球 0-3、好球 0-2、出局 0-2"
   ],
   [
    "壘包",
    "一二三壘有沒有跑者"
   ]
  ]
 },
 "觀念教學:HUD、選單與暫停#3": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   2
  ],
  "cards": [
   {
    "title": "Flame 元件",
    "points": [
     "TextComponent",
     "畫在遊戲畫布上"
    ]
   },
   {
    "title": "Flutter Widget",
    "points": [
     "疊在 GameWidget 上",
     "本課程建議"
    ]
   }
  ]
 },
 "觀念教學:HUD、選單與暫停#6": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "cards": [
   {
    "title": "ValueNotifier",
    "points": [
     "只重繪 H U D"
    ]
   },
   {
    "title": "SafeArea",
    "points": [
     "避開瀏海與手勢條"
    ]
   },
   {
    "title": "IgnorePointer",
    "points": [
     "觸控穿過到遊戲層"
    ]
   }
  ]
 },
 "課後重點整理:觸控操作與介面#3": {
  "type": "bar",
  "avatar": "hide",
  "reveal": [
   0,
   0,
   0,
   0,
   0,
   3
  ],
  "labels": [
   "簡單",
   "普通",
   "困難"
  ],
  "values": [
   0.104,
   0.08,
   0.068
  ],
  "unit": "秒",
  "highlight": 1
 }
}