Skip to content

Commit 5ca66eb

Browse files
committed
content: Remove leading underscore to delta in lesson 10
close #504
1 parent 8721aa1 commit 5ca66eb

7 files changed

Lines changed: 8 additions & 8 deletions

File tree

course/lesson-10-the-game-loop/lesson.tres

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ title = "Rotating a Character Continuously"
161161
goal = "Make the robot rotate slowly by adding to the [code]_process()[/code] function.
162162
163163
A rotation speed of about [code]0.05[/code] each frame should do."
164-
starting_code = "func _process(_delta):
164+
starting_code = "func _process(delta):
165165
"
166166
cursor_line = 0
167167
cursor_column = 0
@@ -181,7 +181,7 @@ goal = "Make the robot move in a large circle slowly by rotating it and simultan
181181
To do this, add the [code]rotate()[/code] and [code]move_local_x()[/code] functions to [code]_process()[/code].
182182
183183
Use a rotation speed of [code]0.05[/code] radians per frame, and move the robot [code]5[/code] pixels per frame."
184-
starting_code = "func _process(_delta):
184+
starting_code = "func _process(delta):
185185
"
186186
cursor_line = 0
187187
cursor_column = 0

course/lesson-10-the-game-loop/rotating-and-moving/RotateAndMoveSprite.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ func _ready() -> void:
66

77

88
# EXPORT move_and_rotate
9-
func _process(_delta):
9+
func _process(delta):
1010
rotate(0.05)
1111
move_local_x(5)
1212
# /EXPORT move_and_rotate

course/lesson-10-the-game-loop/rotating-and-moving/RotateAndMoveSprite.live-editor/scripts/RotateAndMoveSprite.gd.tres

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func _ready() -> void:
1515
1616
1717
# EXPORT move_and_rotate
18-
func _process(_delta):
18+
func _process(delta):
1919
rotate(0.05)
2020
move_local_x(5)
2121
# /EXPORT move_and_rotate

course/lesson-10-the-game-loop/rotating-and-moving/RotateAndMoveSprite.live-editor/slices/RotateAndMoveSprite.move_and_rotate.slice.tres

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ start = 7
1717
end = 11
1818
lines_before = [ "extends Node2D", "", "", "func _ready() -> void:", " set_process(false)", "", "" ]
1919
lines_after = [ "", "", "func _run() -> void:", " reset()", " set_process(true)", " yield(get_tree().create_timer(1.0), \"timeout\")", " Events.emit_signal(\"practice_run_completed\")", "", "", "func reset() -> void:", " rotation = 0.0", " position = Vector2(0, 0)", " set_process(false)", "" ]
20-
lines_editable = [ "func _process(_delta):", " rotate(0.05)", " move_local_x(5)" ]
20+
lines_editable = [ "func _process(delta):", " rotate(0.05)", " move_local_x(5)" ]

course/lesson-10-the-game-loop/rotating-sprite/RotatingSprite.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ func _ready() -> void:
66

77

88
# EXPORT move_and_rotate
9-
func _process(_delta):
9+
func _process(delta):
1010
rotate(0.05)
1111
# /EXPORT move_and_rotate
1212

course/lesson-10-the-game-loop/rotating-sprite/RotatingSprite.live-editor/scripts/RotatingSprite.gd.tres

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func _ready() -> void:
1515
1616
1717
# EXPORT move_and_rotate
18-
func _process(_delta):
18+
func _process(delta):
1919
rotate(0.05)
2020
# /EXPORT move_and_rotate
2121

course/lesson-10-the-game-loop/rotating-sprite/RotatingSprite.live-editor/slices/RotatingSprite.move_and_rotate.slice.tres

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ start = 7
1717
end = 10
1818
lines_before = [ "extends Node2D", "", "", "func _ready() -> void:", " set_process(false)", "", "" ]
1919
lines_after = [ "", "", "func _run() -> void:", " reset()", " set_process(true)", " yield(get_tree().create_timer(1.0), \"timeout\")", " Events.emit_signal(\"practice_run_completed\")", "", "", "func reset() -> void:", " rotation = 0.0", " set_process(false)", "" ]
20-
lines_editable = [ "func _process(_delta):", " rotate(0.05)" ]
20+
lines_editable = [ "func _process(delta):", " rotate(0.05)" ]

0 commit comments

Comments
 (0)