Create a Simple Pygame Car Game for Beginners ๐Ÿš—

Learn Pygame basics by building a simple car game step-by-step. Perfect for Python beginners! Try it free with Anvil.

Create a Simple Pygame Car Game for Beginners ๐Ÿš—
Python Simplified
118.3K views โ€ข Apr 12, 2022
Create a Simple Pygame Car Game for Beginners ๐Ÿš—

About this video

Today we will learn the basics of Pygame by creating a simple car game from scratch! ๐Ÿš—

โญ This video is brought to you by Anvil โญ
Try it for free: https://anvil.works/pythonsimplified

๐Ÿ“ƒ IMPORTANT NOTES ๐Ÿ“ƒ
This tutorial is a 100% beginner friendly! ๐Ÿ’ฏ๐Ÿ’ฏ๐Ÿ’ฏ
It's designed for folks with the most basic knowledge of Python (are you familiar with integers, lists, tuples, while loops, for loops and if statements? no need to be an expert, but as long as you have a basic understanding of these concepts - this tutorial is perfect for you! ๐Ÿ˜€)

So on today's menu, we will:
โญ learn how to draw shapes in Pygame
โญ learn how to work with images in Pygame
โญ learn how to use relative coordinates
โญ learn how to animate Pygame elements
โญ learn how to create keyboard events
โญ learn how to increase the game difficulty overtime

๐Ÿ INSTALL PYGAME ๐Ÿ
____________________________________
FOR NEWER VERSIONS OF PYTHON
โญ pip install pygame
FOR OLDER VERSIONS OF PYTHON (& ANACONDA)
โญ conda install -c cogsci pygame

โš’๏ธ RELATED TUTORIALS โš’๏ธ
____________________________________
โญ My ultimate guide to Anaconda:
https://youtu.be/MUZtVEDKXsk

โญ For Loops For Beginners:
https://youtu.be/dHANJ4l6fwA

โญ Convert Colours to Numbers:
https://youtu.be/mAMTXJJQBDI

โญ My Simple Calculator App with Anvil:
https://youtu.be/NiQdsK3H57Y

โฐ TIME STAMPS โฐ
____________________________
00:00 - intro
00:54 - create Pygame window
03:13 - run Pygame app with Anaconda
04:02 - set background colour
04:51 - set window title
05:27 - what is relative coordinates?
06:35 - draw rectangles with Pygame
07:24 - use coordinates in Pygame
11:22 - relative coordinates example
12:00 - use images in Pygame
15:50 - keyboard events in Pygame
18:48 - animation in Pygame
20:46 - random events in Pygame
23:07 - end game logic in Pygame
25:13 - game levels logic
25:58 - introduction to Anvil
26:44 - increase game difficulty over time
28:32 - thanks for watching!

๐Ÿ”— IMPORTANT LINKS ๐Ÿ”—
____________________________
โญ Complete Tutorial Code:
https://github.com/MariyaSha/SimpleCarGame

โญ Pygame Documentation:
https://www.pygame.org/docs/

โญVehicle Images by:
https://www.freepik.com/

๐Ÿ˜ THANKS FOR WATCHING! ๐Ÿ˜

Tags and Topics

Browse our collection to discover more content in these categories.

Video Information

Views

118.3K

Likes

3.5K

Duration

28:52

Published

Apr 12, 2022

User Reviews

4.7
(23)
Rate:

Related Trending Topics

LIVE TRENDS

Related trending topics. Click any trend to explore more videos.