-
Notifications
You must be signed in to change notification settings - Fork 5
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
Port to python3 #1
Conversation
Thanks. Reviewed. No comments. |
@quozl please review! |
Thanks, but given your other pull requests involving the Sugargame API, I'd prefer to see you fix them before I review any further changes. |
I reviewed and fixed them as you suggested, you can review these changes now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ayushnawal
Tested,
- Activity does not terminate properly. This creates an everrunning background process similar to Conzoco activities. On trying to force kill the activiity (ctrl+c) , it creates a
LookupError
regarding dbus.
found some general bugs that might not have arisen due to porting but, yeah:
- Unable to press / interact with stop button when the countdown goes on. (this might not be an important bug, but of general notice)
Possibly because the stop button does not have a callback that signals the event loop to terminate. See the Sugargame test activity for how to do this. |
Terminating for me properly now. @srevinsaju @quozl please review |
Thanks @ayushnawal, the error's fixed. |
Thanks Reviewed as at 240e47c.
Hope that helps. I didn't have time for a full review. |
replaced crashed with running
Fixes done as suggested. Please review @quozl
I looked at |
Thanks. Reviewed again.
|
Ah, there it is. My comment there shows how to solve the above problem and keep the game user experience the same. |
Fixed it also 😁 Thanks for the help Tried to improve code quality, removed repetitive code using a function Tested. all changes are done. Please review |
You are yet to
As the code stands now, ctrl+q is ignored during each call to pygame.time.wait. |
Fixed. optimized. @quozl, please review |
Thanks. Heavy CPU usage during numGameAnimation, please fix. |
CPU was heavily used during newGameAnimation, fixed by setting fps=30
Thanks, Fixed it 😁 verified using |
Thanks. Tested.
https://github.com/Gr33nMayhem/NumberRush/issues has some other issues yet to be worked on. |
@ayushnawal ping |
@JuiP , seems like we lost the push on this PR. If you would like to continue this PR, then you may do it. |
@srevinsaju @quozl @chimosky I'm interested to complete this PR. I cloned it in |
That is because as at 7eeaaef ("update sugargame to v1 .3") activity/activity.info exec is not yet ported.
There's also a missing end of line mark in the file, and my shell prompt is misplaced after I used cat. ;-)
|
Thanks for picking this up, what's left is mentioned in #1 (comment) and while looking at the other repo, you can keep the flake8 fixes to a different PR. |
Tested.
All set.