Closed frankiephs closed 1 year ago
the while True:
is wrong, the asyncio.run() in pygbag is a special non-blocking function which override normal asyncio
just call last asyncio.run(main())
with no loop. And be sure to add await asyncio.sleep(0)
in the main loop - your actual indentation of it may be wrong , use ```py block to enclose your code in the github markdown
i hope you fixed it
I tried creating the first part of the screen to red (instead of black) to determine whether if it is working or not if I run it. It displays this black screen and by using #debug, it crashes. Help. Am I missing something? I even tried changing the pygame delay to time.sleep thinking the delay is probably the problem