Fun side project game to be released (eventually, currently in review) on the App Store. Code is pretty messy at this point, just want to get it working, then I'll focus on cleaning up code.
The game is very fun! I'd surely download it from the AppStore (if it is going to be free :).
BUT, there are some problems.
- I had to use a small hack to run a game. When I click Play Game in the ui View, nothing happens. It just closes, so I removed call to the ui and added run(...) at the end :)
- Changing character doesn't work very well. I can see just 3 sprites and only part of the 4th one is drawn.
- Changing character (clicking on a sprite) crashes Pythonista.
Screenshot of character selection problem:
Most of this was mentioned in the issues: https://github.com/tjferry14/Cacti-Killer/issues
Can you please create a "pull request" of the changes that you made so the we can all see a working Cacti-Killer?
@ccc, I may try to fix this, but I am a complete noob in ui module, so wish me luck :)
@ShadowSlayer To address your problems:
I had to use a small hack to run a game. When I click Play Game in the ui View, nothing happens. It just closes, so I removed call to the ui and added run(...) at the end :)
If you wait for a few seconds, the scene should run.
Changing character doesn't work very well. I can see just 3 sprites and only part of the 4th one is drawn.
I took the long way and put the characters in two rows.
Changing character (clicking on a sprite) crashes Pythonista.
I still don't know why this is happening, I'll need some help here, possibly from @ccc.
@techteej, unfortunately I cannot help you (lots of other work), but a small advise: you may try to use scene for drawing the menu. Use something like multiscene to have two scenes for menu and the actual game. And try to split it into several files so it will be a lot easier to change something :)
@ShadowSlayer I previously did this for my other projects, but I like UI better because it allows me to write less code and actually drag and drop how I want the menu to look.
Plus it helps me learn new things!
LawAbidingCactus last edited by
Looks great, will download this at the time of the release. I'm no good with the UI module so I can't help you there, but I'll try to see if I can offer any help with your other problems. As a sidenote, I disapprove of the name (you can guess why).
Can someone help me convert the text to Text Layers? Kind of confusing for me, it is setup but not working.
You can create scene.Layer that is rightsized to your text... http://omz-forums.appspot.com/pythonista/post/5242282462674944