Skip to content

Commit

Permalink
fix: Handle optional parameters on move_local_x in lesson 11 (#480)
Browse files Browse the repository at this point in the history
Fix #479
  • Loading branch information
danielbernard authored Apr 3, 2022
1 parent bdee3d0 commit a1c35b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func test_movement_speed_is_correct() -> String:
var has_correct_speed := false
for line in _lines:
has_correct_rotation = has_correct_rotation or line in ["rotate(delta*2)", "rotate(2*delta)"]
has_correct_speed = has_correct_speed or line in ["move_local_x(100*delta)", "move_local_x(delta*100)"]
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)"]

if not has_correct_rotation:
return tr("Is the rotation speed correct?")
Expand Down

0 comments on commit a1c35b0

Please sign in to comment.