Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
[share] Grid-based game for Pythonista
-
@omz Thanks! I like the colours!
-
@chriswilson I just noticed a little bug: When you start the game while the device is in landscape mode, the layout isn't calculated correctly, because you're using
get_screen_size
, and the width/height are swapped in this situation. Could be fixed like this, for example:screen_w, screen_h = min(get_screen_size()), max(get_screen_size())
-
@omz Thanks. That fix works a treat! I'll commit it to GitHub shortly.
-
@omz @chriswilson A shorter solution is just to write
screen_w, screen_h = sorted(get_screen_size())
-
I've noticed that the timer does not always reset when closing the settings screen and I cannot figure out why! The
cancel()
andsave_settings()
functions both call thenew_game()
method, and a new grid is made, but sometimes the timer is part-way through its cycle. Any ideas?