「ネコからにげろ!」をベースにmicro:bitのAボタンと傾きでネズミを操作するように変更しています。micro:bitを傾けた方向にネズミが向きを変えます。Aボタンを押し続けている間はネズミが歩きます。 「micro:bitが傾いた方向へ向ける」のブロックを参考にしてください。 ---- The mouse faces towards the tilt direction of your micro:bit, and walks while the A button on the micro:bit is pressed. Run away from the cat!
「ネコからにげろ!」はCoderDojo広島のプログラミング入門のスライド(下記リンク)を参考にしています。 https://docs.google.com/presentation/d/1Ma8_uTDDRtiI73tt7FOmotFralskdxRS3QPyIpmLLtA/edit#slide=id.g14eb345810_0_105