renpytom / rapt-pygame-example

Example of using RAPT to package Pygame(_sdl2) games.
231 stars 39 forks source link

Error when app is launched #14

Closed Albond87 closed 7 years ago

Albond87 commented 7 years ago

I have successfully installed everything and built an app, but when I run it, it shows the splash screen, then shows a small intro I coded in (as part of main.py), but it then crashes. So it is managing to run the app to display text (using pygame.font.Font()) and render an image to the screen using pygame, but when it gets past the intro to the main loop it crashes. Any ideas why? (The python file works fine before building it). I am importing sdl_2.

Also for some reason I can import the android module and run android.init(), but it crashes at 'android.map_key()'

Finally, how do I print out what errors have occurred, so I know what is going wrong and possibly how to fix it?

Albond87 commented 7 years ago

EDIT: I did some debugging and found out the reason it crashes is because it cannot draw ellipses. Can whoever developed sdl2 update it to implement more features of pygame? Ellipses are very prominent features in pygame, so it kinda sucks that they cannot be used ...

Albond87 commented 7 years ago

EDIT: I discovered that using 'pygame.draw.circle' instead of 'pygame.draw.ellipse' works. So I wrote a simple function to convert drawing an ellipse to drawing a circle and voila ... my app works!