May 2024
Beginner
378 pages
8h 47m
English
Programming is all about manipulating data. In games, this data can be the position of the player, the amount of health they have, or what items they possess. These pieces of data are called variables, and in this chapter, we will learn how these variables work and how we can manipulate them.
In the second part of this chapter, we’ll learn how to use these variables to make decisions during the game. For example, if the health of the player goes to zero, we end the game. This concept is called control flow because we control the flow throughout the code.
In this chapter, we will cover the following main topics:
Read now
Unlock full access