Pygame (Python Game Development) Tutorial – 1 – Introduction



Facebook – https://www.facebook.com/TheNewBoston-464114846956315/
GitHub – https://github.com/buckyroberts
Google+ – https://plus.google.com/+BuckyRoberts
LinkedIn – https://www.linkedin.com/in/buckyroberts
reddit – https://www.reddit.com/r/thenewboston/
Support – https://www.patreon.com/thenewboston
thenewboston – https://thenewboston.com/
Twitter – https://twitter.com/bucky_roberts

Related Posts

21 Comments

  1. Downloading an exe or whl for package installation is too much complicated.

    1.Just install 32 bit version of python (Even if your windows is 64 bit (Believe me it works)) and check the add to path on the installer
    2.Open cmd or a terminal and copy paste: pip install -U pygame

    for Linux:
    1.just open a terminal and type in "sudo pip3 install -U pygame"
    **If it pip3 is not found : "sudo apt install python3-pip" and method try No:1 again**

  2. Honestly got goosebumps when I opened this to see sentdex on python. I had to choose between a sentdex tutorial and a Bucky tutorial…thought I’ll check out bucky’s real quick. So yeah wow

  3. Guys if you wanna install PyGame nowadays do the following:

    1. Navigate to your Python directory (something like Python35 or Python36, often in your C: drive root)
    2. Go to Scripts folder
    3. Hold shift and right click anywhere in the folder (make sure an item isn't highlighted in blue)
    4. Click "Open command window here"
    5. Type in this: pip3 install pygame
    6. Press enter

    It will take a while and will say if it installed.

  4. there is a problem how to solve
    Traceback (most recent call last):
    File "C:Python27qwert.py", line 71, in <module>
    gameLoop()
    File "C:Python27qwert.py", line 26, in gameLoop
    randAppleX=random.randrange(0,display_width-block_size)
    NameError: global name 'random' is not defined

Leave a Reply

Your email address will not be published.

© 2022 Code As Pro - Theme by WPEnjoy · Powered by WordPress