Racey

Racey

NOTE: You will need to have both Python and Pygame installed to use this tutorial.

ONE: Follow the Build Basic Game steps to create your first python game

TWO: Choose from the Add One Tasks to extend your game

This tutorial based on content from https://pythonprogramming.net/

If you have had issues with using PIP to install pygame

Re-install Python and make sure that
On the first installation window, check the box labeled “Add python.exe to PATH” (or “Add Python to environment variables”).

Or manually add python to your Path

MAC:OSX: https://mac.install.guide/python/path#:~:text=user%2Dinstalled%20executables.-,Add%20to%20the%20$PATH,path/to/directory:$PATH

WINDOWS: https://www.mygreatlearning.com/blog/add-python-to-path/

Racey – Basic Game Build

3. Racey – Movement

STEP Three – A x_change = 0 ########################################################## ## ## ## Replace this with Code…

Read More

6. Racey – Drawing Objects

STEP Six – A def things(thingx, thingy, thingw, thingh, color): pygame.draw.rect(gameDisplay, color, [thingx, thingy, thingw,…

Read More

7. Racey – Crashing

STEP Seven #collision for thing if thing_starty > display_height: thing_starty = 0 – thing_height thing_startx…

Read More

8. Racey – Scoring

STEP Eight – A def things_dodged(count): font = pygame.font.SysFont(None, 25) text = font.render(“Dodged: “+str(count), True,…

Read More

Racey – Add-ons