
康老師的
Scratch 小教室Kang’s
Scratch classroom
從讓角色動起來,到設計自己的遊戲。一起動手試、觀察變化,再把想法做出來。Start with a moving sprite, then build games of your own. Try things, notice what changes and bring your ideas to life.
寫在前面A note before we begin這是我為洛菲與洛瑀的程式啟蒙,親手設計的一套課程,也是一份陪著他們和小夥伴們一起探索、一起學習的筆記。願每一次動手嘗試,都能留下一點發現的喜悅,讓好奇心帶著我們繼續往前走。I designed these lessons to introduce Luo-Fei and Luo-Yu to programming. They are also notes from our time exploring and learning together with their friends. May every hands-on experiment bring the joy of a small discovery, and may curiosity keep us moving forward.
The lessons are written in Traditional Chinese.
入門起步Getting started
開始使用 ScratchGetting started with Scratch
先認識角色、舞台與積木,再讓你的第一個角色動起來。Meet sprites, the stage and blocks, then bring your first sprite to life.
進入課程 →Open lesson →座標與移動Coordinates and movement
把舞台當成一張地圖,用座標、方向與按鍵帶角色去想去的地方。Use coordinates, direction and keyboard controls to move around the stage.
進入課程 →Open lesson →核心概念Core ideas
變數Variables
用變數記住大小、分數與時間,做出氣球派對和貓咪吃蘋果兩個小遊戲。Keep track of size, score and time in two small games.
進入課程 →Open lesson →分身Clones
讓同一個角色出現很多次,用分身製作子彈、蝙蝠與自己的動作遊戲。Create repeated sprites for projectiles, bats and an action game.
進入課程 →Open lesson →區域變數與廣播Local variables and broadcasts
給每個分身一個編號,再用廣播讓角色互相合作,完成雙人取子遊戲。Give clones their own identities and coordinate them with broadcasts.
進入課程 →Open lesson →清單Lists
把一筆資料變成一整組資料,練習新增、讀取與篩選清單中的項目。Store, read and filter a collection of related items.
進入課程 →Open lesson →字串Strings
把文字當成資料,組合對話、記錄選擇,也讓程式讀懂玩家輸入的內容。Combine text, record choices and respond to what a player enters.
進入課程 →Open lesson →遊戲專題Game projects
捲軸背景Scrolling backgrounds
角色留在舞台中間,讓場景往後移動,做出向前冒險的感覺。Move the scenery to create a continuous sense of travel.
進入課程 →Open lesson →多關卡遊戲框架A multi-level game framework
先規劃開始、選單、關卡與結尾,再讓舞台統一管理整個遊戲流程。Plan the start, menu, levels and ending before coordinating the game.
進入課程 →Open lesson →延伸實作Further exploration
會學習的取子遊戲A learning opponent
從雙人對戰走到電腦對手,用清單記錄經驗,觀察推薦招式如何改變。Build on the take-away game and use lists to learn from experience.
進入課程 →Open lesson →角色動作設計Designing sprite costumes
從角色模板到動作分鏡,整理造型、透明背景與動畫,做出自己的 Scratch 角色。Turn a character design into a consistent set of animated costumes.
進入課程 →Open lesson →