简体   繁体   中英

pygame_sdl2 error: not implented

I'm building a android app using pygame_sdl2, pygame, and pgs4a, and when I tried to run my app on my PC (as a Python File, not an android app), I got this error:

You can find my code here .

Thanks for your time, OrionDark7

I figured it out, as Remolten said, some parts of pygame have not been implented into pygame_sdl2. But here is an alternative:

First, don't load pygame_sdl2, just pygame, and then the surface will blit to the window.

From there, you can take a screenshot of the surface you are trying to blit, and save it as an image.

Re-import pygame_sdl2, and load the image instead.

This is what I have tried and it worked, pygame_sdl2 can display images, but not some shapes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM