
An example of such logic would test if the user has pressed the spacebar, and if so, the game will modify variables of the player object so that it rises, and then falls at a certain point. The main loop also contains logic statements that run code based on different possible user input values. The objects are run until the time they are removed from the program. This loop contains code that creates objects that each have their own loops to control animation, movement, actions, and logic statements based on various aspects of what is occurring in the game. It is also important to point out the importance of iterative design and debugging that people learning game development with GameMaker will become overly familiar with through the process.īy definition, a game is a special kind of program that is run inside a loop that repeats as long as the user has not decided to close the game program. Moving from the drag and drop approach to coding in GameMaker Language ( GML) is logical and the transition demystifies coding. The drag and drop interface lends beautifully to the understanding of computer science concepts related to object-oriented programming including sequencing, loops, conditional statements, variables, among others.


In the 15 years of GameMaker experience between us, we have both found it to be one of the best tools for teaching design as well as the introduction to computer science principles. Chapter 1. Introduction to GameMaker: Studio
