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 Game Lab group collisions #18751

Merged
merged 1 commit into from Oct 31, 2017
Merged

Fix Game Lab group collisions #18751

merged 1 commit into from Oct 31, 2017

Conversation

caleybrock
Copy link
Contributor

@caleybrock caleybrock commented Oct 30, 2017

Example code: https://studio.code.org/projects/gamelab/_oLwG6JeyexRRnAI4QjI3anERbKmRTK5Q5WwfgAM4MU
Before:
groupcollisionsbefore
After:
groupcollisionsafter

We got a couple of tickets around group collisions, but we're sure how long it has been broken for. We also have a full suite of tests around GameLabGroup collisions, but since they try to mimic the interpreter instead of use it directly, they were passing even though the same code copied into GameLab was failing.

I found a commit from @pcardune in June called "Fix gamelab interpreter shenanigans to make sprite collisions work again" and noticed that the variable replaced in this file was not replaced in GameLab group. I am not sure how to test this since it's related to interpreter work, but I'm open to suggestions @pcardune

I propose merging this now since students/teachers are looking for a fix, and figure out how to test interpreter/Game Lab better when Paul can help.

@epeach
Copy link

epeach commented Oct 30, 2017

I'm not familiar with this code, but it looks good to me!

Copy link
Contributor

@islemaster islemaster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work tracking this down! As discussed offline, agree that this should get merged as-is and investigate testing a bit later. Possibly using level tests to check this behavior with the real interpreter since our GameLabGroup tests don't use the interpreter - would be a good challenge to pair with @epeach on.

@caleybrock caleybrock merged commit 1f05f7e into staging Oct 31, 2017
@caleybrock caleybrock deleted the gamelab-group-collisions branch October 31, 2017 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants