In this chapter, you see how your game program can react to button presses. In order to do this, you need an instruction called if that executes an instruction (or a group of instructions) when a condition is met. You also learn to structure your code a bit more into objects and methods.
Boolean Variable Button Press Mouse Button Event Handler Punctuation Mark
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.
This is a preview of subscription content, log in to check access.