In This Chapter
Looking at coding examples from the breakout tutorial
Using GameMaker Language code
Coding keyboard controls
Looking at example code for collisions
Coding score displays
Creating an introductory Room and a closing Room
An extremely powerful feature of GameMaker: Studio is the ability to code using GameMaker Language (GML). GameMaker makes it easy for you to add custom code to your game through the Execute Code Action found on the Control tab of the Object Properties window.
To get you acquainted with GML, this chapter uses coding examples from the in-software tutorial, Coding Tutorial, which shows how to create a breakout-style game using GML. Through the example code, you work with Objects that represent a player-controlled bat, a bouncing ball, and a number of other Objects that you can use in your own games.