Skip to content

Commit a1c35b0

Browse files
fix: Handle optional parameters on move_local_x in lesson 11 (#480)
Fix #479
1 parent bdee3d0 commit a1c35b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

course/lesson-11-time-delta/rotating-and-moving-delta/TestsRotatingMovingDelta.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func test_movement_speed_is_correct() -> String:
4646
var has_correct_speed := false
4747
for line in _lines:
4848
has_correct_rotation = has_correct_rotation or line in ["rotate(delta*2)", "rotate(2*delta)"]
49-
has_correct_speed = has_correct_speed or line in ["move_local_x(100*delta)", "move_local_x(delta*100)"]
49+
has_correct_speed = has_correct_speed or line in ["move_local_x(100*delta)", "move_local_x(delta*100)", "move_local_x(100*delta,false)", "move_local_x(delta*100,false)"]
5050

5151
if not has_correct_rotation:
5252
return tr("Is the rotation speed correct?")

0 commit comments

Comments
 (0)