pygame-ce
pygame-ce copied to clipboard
General example changes
trafficstars
Hi, I took a look at all examples, and made some fixes.
aacircle.py :
- Removed the pretty weird try block and replaced it by a beautiful while loop
aliens.py :
- renamed
alltoall_sprite, becauseallis a native python function. - removed
depthargument - added
pygame.SCALEDbecause on Windows, there is a problem with FULLSCREEN mode
chimp.py :
- removed
RenderPlainbecause it's deprecated - renamed some variables so it follows python naming convention
dropevent.py :
- renamed some variables because either it doesn't follow the python naming convention, or it is not intuitive
playmus.py :
- This is a proposition from Matiiss, switching from
pygame.freetypetopygame.Font - Revamped the code, as its structure isn't understandable for a beginner.
resizing_new.py :
- renamed a variable because it's not intuitive
scaletest.py :
- removed useless alias
- renamed some variables/functions because either it doesn't follow the python naming convention, or it is not intuitive
liquid.py :
- renamed some variables/functions because either it doesn't follow the python naming convention, or it is not intuitive
- remove
time.sleepso it usespygame.Clock
This should fix #2518