Courses › Game Development with Godot ›Reach the Target: A Mini Project Guide › Worksheet
Reach the Target: Turn-In Worksheet Worksheet
Complete these exercises before running the code in Godot.
Part 1: Label the Code
Here is a finished version of the project. Answer the questions below about it.
func _ready():
position.x = 100
position.y = 300
var score = 0
print("Game started!")
func _process(delta):
position.x += 150 * delta
-
Which line sets the player’s starting position on screen?
-
Which line creates a new variable? What value does it start with?
-
Which function runs only once, and which one runs over and over?
-
Which line actually moves the player automatically? What would happen if you removed “* delta” from it?
Part 2: Reflection Questions
Answer using YOUR OWN project, not the example above.
-
In your own words, what does your position variable control in your project?
-
What does your _process(delta) code do, step by step?
-
What was the most confusing part of this week for you, and what helped you understand it?
Part 3: Self-Check
Before you turn this in, check off what your project actually does:
-
My player object has a starting position
-
My player moves automatically when I press Play
-
My project prints a message in the Output panel
-
I tried at least one stretch goal (optional)