與Scratch有約-4,Date:1023
1.新增舞台的背景設計:Stage/Background
2.增加動畫開始前的提示語(INSTRUCTIONS)
例如:click the green flag to start,then move the mouse to eat the ball或是
Click the Green Flag to start. Press the Left/Right arrows to control the flippers.
3.指令積木介紹:
完全Scratch 參考操作手冊,http://scratch.mit.edu/files/ScratchReferenceGuide.pdf{Motion}
(1)set x to mouse x,將精靈的x座標設成滑鼠指標x座標的位置
(2)set y to mouse y,將精靈的y座標設成滑鼠指標y座標的位置
(3)go to mouse-pointer,將精靈的x,y座標設成滑鼠指標位置
(4)brocadcast ___ ,傳出某訊號
(5)when I receive ___ ,當收到某訊號
(6)stop script
(7)stop all
Variables
(1)Make a variable,建立變數
(2)Delete a variable,刪除變數
→變數代表程式執行時的記憶空間,我們可以用來計算總合或次數,可遞增或遞減
→例如:計算分數(Score)
set Score to 0
change Score by 1
→例如:倒數計時(Time)
set Time to 60
repeat 60
change Time by -1
wait 1 sec
Sound
(1)play note for secs
(2)play drum for secs
(3)set instrument to
Sensing
(1)tounching _A_?
(2)tounching color _B_?
(3)color _C_ is over _D_?
範例:貓抓紅球 Hw1016 Teacher1023
(1)時間:60秒
(2)成績:每抓1球得1分
(3)當時間終止時,需出現GAME OVER並停止!!
作業:貓抓球進階版
(1)時間:60秒,但是最後倒數10秒鐘時會持續發出滴滴的聲音
(2)成績:每抓1球得1分
(3)當時間終止時,除出現GAME OVER外,也出現評語!
0-10:ohoh...
10-20:not bad!
20-30:you did a great job!!
>30:you are my superman!!
加分:(3)除出現GAME OVER外也需出現try again鈕!!按下try again鈕就可以重頭再玩一次!
================================================================================
將作品上傳至yucsh gallery再加5分!上傳方式如下:================================================================================
1.註冊Scratch帳號,
http://scratch.mit.edu/的login鈕
2.作品上傳
(1)按下「Share」
(2)依序輸入你的 帳號、密碼、作品名稱Project name及作品描述,請在作品描述欄輸入操作方式
(3)自己的作品網址 http://scratch.mit.edu/users/帳號
3.將作品繳交至yucsh gallery
(1)http://scratch.mit.edu/galleries/view/6768
(2)點選右邊的add my project鈕
(3)打勾欲繳交作品名稱
沒有留言:
張貼留言