若您覺得文章寫得不錯,請點選文章上的廣告,來支持小編,謝謝。
If you like this post, please click the ads on the blog or buy me a coffee. Thank you very much.- 砲台在畫面下方移動。The turret moves between the bottom of LED matrix.
- 按A鍵砲台燈向左移動。 The turret moves to left when button A is pressed.
- 按B鍵砲台燈向右移動。The turret moves to right when button B is pressed.
- 按A+B鍵發射子彈。Firing when button A and button B are pressed.
- 敵機隨機在最上方的位置出現。 The enemy moves between the top of LED matrix.
- 子彈打到敵機時,得一分。Score 1 point when the enemy is hit by a bullet.
影片(Demo Video):
範例網址(Example Code):https://makecode.microbit.org/_EEAd7hdq8hav