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

Oven fix mobile #18

Merged
merged 9 commits into from
Nov 30, 2022
Merged

Oven fix mobile #18

merged 9 commits into from
Nov 30, 2022

Conversation

Zott820
Copy link
Collaborator

@Zott820 Zott820 commented Nov 29, 2022

  1. Added ability to open oven door fully by tapping/clicking twice within 2 seconds. Workaround for Can't open oven beyond peek on mobile #17
  2. Updated to CreateJS version 1.0. This fixes sound looping on Firefox.
  3. CreateJS version 1.0 broke the sort order for the button to remove the turkey from the oven. Added new alpha for this button to prevent pressing button until oven is open.
  4. Added new dialogue for when the oven light switch is pressed, but the light bulb was not purchased. Enhancement Oven Light - Add Dialogue for "Broken" Oven Light. #10

Please test and review. Thank You!

EDIT by @fernjager: Added the Fixes keywords linking to the relevant GH issues so that they'll be automatically closed once this PR is merged 👍

Fixes #17
Fixes #10

No dice! Now the interface is even LESS responsive to Mobile.
Fixed typo?
Give up on the touch interfaces.

Allow mobile users and desktop users to open the open fully by clicking to peek, then within 2 seconds, clicking on the handle again.
2 Bugs with newest code:
1) Buying turkey when oven open prevents taking oven out or closing oven
2) Can Click on turkey to end game during any oven open state.
finalButton variable is created to only allow taking turkey out of oven when oven door is open.

Create JS v1.0 seems to treat the stacking order differently, so the oven door's alpha doesn't prevent clicking the final button with any oven alpha state.
Clean-up unused comments.
Fixed missing button breaking sounds.
@fernjager fernjager self-assigned this Nov 29, 2022
@fernjager fernjager self-requested a review November 29, 2022 04:52
@fernjager fernjager assigned Zott820 and unassigned fernjager Nov 29, 2022
Copy link
Owner

@fernjager fernjager left a comment

Choose a reason for hiding this comment

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

Thanks for the bugfixes, looks great- just a few small things!

js/ui.js Outdated Show resolved Hide resolved
js/ui.js Outdated Show resolved Hide resolved
js/ui.js Outdated Show resolved Hide resolved
Copy link
Owner

@fernjager fernjager left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!!

@fernjager fernjager merged commit b281490 into master Nov 30, 2022
@fernjager fernjager deleted the OvenFixMobile branch November 30, 2022 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't open oven beyond peek on mobile Oven Light - Add Dialogue for "Broken" Oven Light.
2 participants