Front Matter....2
1. Why Learn Programming with the Godot Game Engine?....15
2. Getting to Know Godot....18
3. Writing Scripts....42
4. Storing Data in Variables....60
5. Mathematical Operations....87
6. Branching Statements....107
7. Looping Statements....128
8. Understanding Arrays....146
9. Understanding Dictionaries....171
10. Functions....186
11. Object-Oriented Programming....207
12. Getting Input from the User....233
13. Shooting Projectiles....253
14. Adding Projectiles to a Player....266
15. Hitting Enemies with Projectiles....293
16. Displaying a User Interface....309
17. Adding Physics....338
18. Playing Audio....369
19. Creating and Using Scenes....396
20. Using Signals....422
21. Creating a Simple Tic-Tac-Toe Game....445
Back Matter....459
Create video game elements using the Godot game engine, gaining practical experience in programming and video game development. The Godot game engine uses a simplified programming language called GDScript, which closely resembles Python. By learning GDScript, you can focus more on learning the basics of programming.
You’ll explore concepts such as variables and data structures variables used to store information about video game objects that can be manipulated using a keyboard or a mouse. You’ll also learn about user interface design, branching statements, and looping statements, enabling you to actively engage in programming and create your own interactive games.
By the end of the book, you’ll have a solid understanding of how video game elements work and how the basic principles of programming work as well. By programming simple video game elements in the Godot game engine, you’ll learn both programming and the principles of 2D video game design.
Aspiring programmers and game enthusiasts seeking an engaging introduction to programming through video game creation.