Skip to content

Commit d14136c

Browse files
authored
do not install git version first
1 parent f01bfb0 commit d14136c

1 file changed

Lines changed: 10 additions & 14 deletions

File tree

wiki/pygbag/README.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ If you have questions at any point, you can ask for help in [Pygame's Discord Se
77
First, we need to install Pygbag itself. Pip is a tool used to install Python libraries, and it's usually installed along with Python.
88

99
Execute the following command in the terminal:
10-
`pip install git+https://github.com/pygame-web/pygbag --user --upgrade`.<br>
11-
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 ).
1212

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.
1414

1515
## Quick Start Guide
1616
### Code
@@ -29,24 +29,20 @@ import asyncio
2929
import pygame
3030

3131
pygame.init()
32-
pygame.display.set_mode((320, 240))
32+
pygame.display.set_mode((990, 540))
3333
clock = pygame.time.Clock()
3434

35-
3635
async def main():
3736
count = 60
3837

39-
while True:
38+
while count:
4039
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-
if not count:
45-
pygame.quit()
46-
return
47-
4840
count -= 1
4941
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()
5046

5147
asyncio.run(main())
5248
```
@@ -156,7 +152,7 @@ When importing complex packages (for example, numpy or matplotlib), you must put
156152
# ]
157153
# ///
158154
```
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)
160156

161157
### Useful .gitignore additions
162158
```

0 commit comments

Comments
 (0)