Creating and Moving Rectangles in Pygame - Beginner Tutorial
This tutorial explains how to work with rectangles in Pygame, covering two methods of creating them and demonstrating how to move them within your game.

Coding With Russ
33.7K views • Feb 26, 2023

About this video
In this video I will explain how to work with rectangles in Pygame.
I'll go over the two methods of creating them, which is to create them from scratch using the .Rect class or by creating a rectangle from an existing object such as an image using the .get_rect() method.
I'll also explain how to move rectangles and adjust their properties after they have been created.
Take a look at the tutorial on my website for a reference on working with rectangles here: http://www.codingwithruss.com/pygame/working-with-rectangles-in-pygame/
I'll go over the two methods of creating them, which is to create them from scratch using the .Rect class or by creating a rectangle from an existing object such as an image using the .get_rect() method.
I'll also explain how to move rectangles and adjust their properties after they have been created.
Take a look at the tutorial on my website for a reference on working with rectangles here: http://www.codingwithruss.com/pygame/working-with-rectangles-in-pygame/
Tags and Topics
Browse our collection to discover more content in these categories.
Video Information
Views
33.7K
Likes
800
Duration
10:42
Published
Feb 26, 2023
User Reviews
4.7
(6) Related Trending Topics
LIVE TRENDSRelated trending topics. Click any trend to explore more videos.