Summary
We have learned a lot in this chapter, and also put much of it to practical use. First, we studied and implemented the if
and else
blocks. We also learned about switch
, case
, and break
, which we will use in future projects.
Now that Sub' Hunter is complete, we can turn to a slightly more advanced game. Sub' Hunter was slightly static compared to modern games and it was also very quiet. In the next chapter, we will start an animated Pong game, complete with beeps. Before we start on the project, however, we will take a much deeper look at classes and object-oriented programming.