Pygame rotating rectangles | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

Pygame rotating rectangles

Does anyone know how to rotate a rectangle (not an image or sprite) with or without losing quality?

9th Aug 2019, 1:30 PM
Bekir Kağan Karaahmetoğlu
Bekir Kağan Karaahmetoğlu - avatar
1 ответ
+ 3
when you draw anything. drawing_surface = pygame.draw.rect(...) They return a surface object, just like images and font rendering do. But I have no idea how to rotate it, other ways than the given one.
9th Aug 2019, 8:00 PM
Seb TheS
Seb TheS - avatar