第15步:如果太空飞船与宇航员发生碰撞,那么让我们从控制台上移除宇航员。
- 删除指令代码行 ········sprite.say("I·hit·something!")。
- 点击 ,将 Remove Sprite 拖动到 if 语句内部。
- 将 .remove_sprite() 中的参数更改为 hit_sprite。
指令.remove_sprite() 缩进了两次。它的前面应该有一个绿色和一个黄色区块 ········。
To navigate the page using the TAB key, first press ESC to exit the code editor.