Getting Unstuck Day 21: Invent a new Getting Unstuck prompt. Create a project in response to your prompt. Create a project involving shooting, launching, or throwing an object. Press the green flag to start. Use left/right arrows to aim. Press the space bar to shoot.
I know a lot of my students want to create a shooting style game, so I wanted to explore how to shoot/launch objects from another object. The most obvious way to me is a typical Space Invaders style game. I thought it would be a lot harder, but I actually found it quite easy to code the bullets to appear at the cannon and move from there, as if fired from it. Of course there is much more that can be done to this project, but I wanted to focus on that particular skill.