2017年1月4日 星期三

黃翰源學習程式設計

  • 時間:2017年1月4日(五) 9:10-11:20
  • 翰源:小學五年級
  • 程式語言:Scratch
  • 研究專案:Scratchnapped
  • 今日學習進度:
    • 分析程式起動最初三個角色四幕進場概況,如附表。
  • 下次學習計畫
    • 繼續程式分析
  • 後續學習計畫
    • 研究資料結構
    • 研究程式結構
    • 逆向工程:寫出使用案例
  • 已完成學習項目

程式起動最初三個角色四幕進場概況

數字大於1者表示有分身
Costumes 第一幕 第二幕 第三幕 第四幕
1 Stand_1 3 1
2 Jump_1 1 1
3 Fall_1
4 Stand_Sad 1 1
5 bitmap 1 1
6 bitmap_bad 1
7 text1 1
8 text2 1
9 text3 1
10 scratchnapped 1
1 play 1
2 play2
3 music
4 music2
5 musicOn 1
6 musicOn2
7 Sound
8 Sound2
9 SoundOn 1
10 SoundOn2
11 TryLevel2 1
12 Try Level2
next 1 1 1

程式分析

  • Stage
    • When green_flag clicked
      • .......
      • broadcast "Init Once Only" and wait
      • broadcast "The Beginning"
    • When I receive "The Beginning"
      • broadcast "Un_Init" and wait
      • broadcast "Reset" and wait
      • ......
      • if ...... then ...... else...... end if
      • if ...... else ...... end if
      • ......
    • .......
  • Cut Scene 1
    • When green_flag clicked
      • go to front
      • hide
    • When I receive "Cut Scene 1" (唯一廣播者 Stage)
      • ......
      • reset timer
      • ......
      • broadcast "Fade In"
      • ......
      • broadcast "Cut Scene Stage" and wait (唯一接受者 Cut Scene Sprites)
      • ......
  • Cut Scene Sprites
    • ......