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

TriggerSequence Minigame: Check if trigger is between two lines #796 #1345

Merged
merged 3 commits into from
Mar 21, 2024

Conversation

BeckFW
Copy link
Contributor

@BeckFW BeckFW commented Feb 20, 2024

Fix for issue #796
Changes:

  • Move creation of line objects out of the constructor
  • Check position of trigger vs position of both lines before triggering "good" animation

@AlmasB please review and let me know if further changes are needed

@DaleHuntGB @artemijsem

Copy link
Owner

@AlmasB AlmasB 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 this, a few questions below

if (miniGame.press(key)) {
// Has the correct key been pressed, and is the current view between the two lines
if (miniGame.press(key) &&
currentTrigger.translateX >= line1.startX &&
Copy link
Owner

Choose a reason for hiding this comment

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

We are potentially being too strict here from the gameplay perspective. What if the current view X is less than line1.x but the right side of the view is still between line1.x and line2.x? I think we should allow it to be accepted

Copy link
Owner

@AlmasB AlmasB left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@AlmasB AlmasB merged commit 8dfef54 into AlmasB:dev Mar 21, 2024
5 of 6 checks passed
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.

2 participants