Creating and Moving Rectangles In Pygame - Beginner Tutorial

Опубликовано: 26 Февраль 2023
на канале: Coding With Russ
24,395
592

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/...