Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Handle optional parameters on move_local_x in lesson 11 #480

Merged
merged 1 commit into from
Apr 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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