You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would install/upgrade to the latest version of pygbag.
10
+
`pip install pygbag --user --upgrade`.<br>
11
+
This would install/upgrade to the latest version of pygbag ( expected to be tested and quite stable ).
12
12
13
-
`pip install pygbag --user --upgrade` also works.
13
+
`pip install git+https://github.com/pygame-web/pygbag --user --upgrade`would also work and install devel version of pygbag with potentially newer features or more recent python / modules.
14
14
15
15
## Quick Start Guide
16
16
### Code
@@ -29,24 +29,20 @@ import asyncio
29
29
import pygame
30
30
31
31
pygame.init()
32
-
pygame.display.set_mode((320, 240))
32
+
pygame.display.set_mode((990, 540))
33
33
clock = pygame.time.Clock()
34
34
35
-
36
35
asyncdefmain():
37
36
count =60
38
37
39
-
whileTrue:
38
+
whilecount:
40
39
print(f"{count}: Hello from Pygame")
41
-
pygame.display.update()
42
-
await asyncio.sleep(0) # You must include this statement in your main loop. Keep the argument at 0.
43
-
44
-
ifnot count:
45
-
pygame.quit()
46
-
return
47
-
48
40
count -=1
49
41
clock.tick(60)
42
+
pygame.display.update()
43
+
await asyncio.sleep(0) # You must include this statement in your main loop. Keep the argument at 0.
44
+
45
+
pygame.quit()
50
46
51
47
asyncio.run(main())
52
48
```
@@ -156,7 +152,7 @@ When importing complex packages (for example, numpy or matplotlib), you must put
156
152
# ]
157
153
# ///
158
154
```
159
-
If using pygame-zero (mostly untested), put `#!pgzrun` near the top of main.py. (2nd line is perfect if the file already has a shebang)
155
+
If using pygame-zero (mostly untested), put `#!pgzrun` near the top of main.py. (2nd line is ok if the file already has a shebang)
0 commit comments