From the course: Arduino: Prototyping
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Solution: Complete the experience - Arduino Tutorial
From the course: Arduino: Prototyping
Solution: Complete the experience
(upbeat music) - [Instructor] Here's my solution to the challenge. To recap the goals are, first to add the intro and completion screens to the main prototype and have the laser bounce back and forth. Second, to revise gameplay to deactivate rather than erase zapped invaders. Then, reactivate zapped invaders if you shoot them again by accident. The intro and completion screens and the laser motion can be copied from previous challenges but the changes to the gameplay are new. The pseudocode for the new gameplay is, when the laser's fired if an invader is there deactivate it and reduce the invader account. Otherwise, if a deactivated invader is there reactivate the invader and increase the invader count. Now let's go to the desktop and I'll show you how I modified the prototype sketch. Here, you can see I've loaded where in the IDE and I've loaded retro seven and I've already put in the changes for the start screen…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.