8000 add sample use pygame_sdl2 · lstwzd/python-for-android@539bfed · GitHub
[go: up one dir, main page]

Skip to content

Commit 539bfed

Browse files
committed
add sample use pygame_sdl2
1 parent 306b753 commit 539bfed

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@ If you did this, to build an APK with SDL2 you can try e.g.:
5757
For full instructions and parameter options, see [the
5858
documentation](https://python-for-android.readthedocs.io/en/latest/quickstart/#usage).
5959

60+
add support pygame_sdl2 sample:
61+
62+
import pygame_sdl2
63+
pygame_sdl2.import_as_pygame()
64+
65+
import pygame
66+
from pygame.locals import *
67+
from pygame.render import *
68+
69+
6070
## Support
6171

6272
If you need assistance, you can ask for help on our mailing list:

0 commit comments

Comments
 (0)
0