Programming for game design a hands-on guide with Godot
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 basic...
Main Authors: | , |
---|---|
Format: | eBook |
Language: | English |
Published: |
Berkeley, CA
Apress L. P.
2024
|
Subjects: | |
Online Access: | |
Collection: | O'Reilly - Collection details see MPG.ReNa |
Table of Contents:
- Intro
- Table of Contents
- About the Authors
- About the Technical Reviewer
- Chapter 1: Why Learn Programming with the Godot Game Engine?
- Chapter 2: Getting to Know Godot
- Creating and Opening a Godot Project
- Creating a Scene and Nodes
- Viewing and Modifying a Scene
- Rotating and Scaling a Node
- Summary
- Chapter 3: Writing Scripts
- Creating a Script
- Writing a Script
- Viewing the GDScript Documentation
- Summary
- Chapter 4: Storing Data in Variables
- Creating a Variable
- Storing and Retrieving Values in a Variable
- Understanding Data Types
- Exercise: Reacting to Different Boolean Values
- Summary
- Chapter 7: Looping Statements
- Using a For Loop
- Using a For Loop to Count with Different Values
- Using the For Loop with Strings and Arrays
- The While Loop
- Comparing For and While Loops
- Exercise: Repeating Code with Loops
- Summary
- Chapter 8: Understanding Arrays
- Using Arrays
- Creating and Adding Items to an Array
- Getting Information About Arrays
- Retrieving Data from Arrays
- Manipulating Arrays
- Searching for Data in an Array
- Deleting Data from an Array
- Exercise: Using Arrays
- Summary
- Exercise: Understanding How Object-Oriented Programming Works in Godot
- Summary
- Chapter 12: Getting Input from the User
- Detecting Keyboard and Mouse Input
- Defining an Input Map
- Detecting Modifier Keys in an Input Map
- Summary
- Chapter 13: Shooting Projectiles
- Creating a Projectile Scene
- Changing the Name of a Node
- Adding a Projectile Image
- Adding a Collision Shape
- Making the Projectile Move
- Summary
- Chapter 14: Adding Projectiles to a Player
- Creating a Player Scene
- Changing the Name of a Node
- Adding a Player Image and Collision Shape
- Chapter 9: Understanding Dictionaries
- Creating Dictionaries
- Retrieving Data from a Dictionary
- Getting Information About Dictionaries
- Changing and Deleting Data in Dictionaries
- Exercise: Using Dictionaries
- Summary
- Chapter 10: Functions
- Understanding Functions
- Creating Functions
- Using Parameters with Functions
- Optional Parameters
- Returning Values with Functions
- Exercise: Using Functions
- Summary
- Chapter 11: Object-Oriented Programming
- Creating a Class
- Initializing Properties
- Inheriting Classes
- Polymorphism
- Understanding Variable Scope
- Constants and Enumerations
- Comments
- Exercise: Seeing Variables Change
- Summary
- Chapter 5: Mathematical Operations
- Mathematical Operators
- Creating Constants
- Understanding Precedence
- Using Math Functions
- Creating Random Numbers
- Manipulating Strings
- Exercise: Randomizing an X and Y Position
- Summary
- Chapter 6: Branching Statements
- Working with Comparison Operators
- Working with Logical Operators
- The if Statement
- The if-else Statement
- The if-elif Statement
- The match Statement