Closed thunderrabbit closed 3 years ago
Currently, this function https://github.com/thunderrabbit/conswi/blob/7bb66530148091f0b8dde5b9ae76dc86271aab97/subscenes/LevelEndedStars.gd#L164 randomly chooses the number of stars to award the player.
GameSwipeDetector.gd needs to keep track of how many swipes have been correctly swiped
https://github.com/thunderrabbit/conswi/blob/7bb66530148091f0b8dde5b9ae76dc86271aab97/GameSwipeDetector.gd#L98
Game.gd must (also) send both (number of required swipes) and (number of correct swipes) when the level is won.
https://github.com/thunderrabbit/conswi/blob/7bb66530148091f0b8dde5b9ae76dc86271aab97/Game.gd#L205
Look back through the code until up to a few months ago, and those numbers are being tracked somewhere because they used to determine if the level was completed.
Something like this is needed to determine how many swipes were required for the level.
https://github.com/thunderrabbit/conswi/blob/d738d9a59a67f7a26ff6a4b203997bbd34795122/subscenes/StarRequirements.gd#L114
Currently, this function https://github.com/thunderrabbit/conswi/blob/7bb66530148091f0b8dde5b9ae76dc86271aab97/subscenes/LevelEndedStars.gd#L164 randomly chooses the number of stars to award the player.
GameSwipeDetector.gd needs to keep track of how many swipes have been correctly swiped
https://github.com/thunderrabbit/conswi/blob/7bb66530148091f0b8dde5b9ae76dc86271aab97/GameSwipeDetector.gd#L98
Game.gd must (also) send both (number of required swipes) and (number of correct swipes) when the level is won.
https://github.com/thunderrabbit/conswi/blob/7bb66530148091f0b8dde5b9ae76dc86271aab97/Game.gd#L205
Look back through the code until up to a few months ago, and those numbers are being tracked somewhere because they used to determine if the level was completed.
Something like this is needed to determine how many swipes were required for the level.
https://github.com/thunderrabbit/conswi/blob/d738d9a59a67f7a26ff6a4b203997bbd34795122/subscenes/StarRequirements.gd#L114