Explain "sprites" in pygame python | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Explain "sprites" in pygame python

What are sprites used for and how

26th Apr 2021, 3:51 AM
Joachim Bharathi
Joachim Bharathi - avatar
2 ответов
+ 2
Joachim Bharathi It is used when the object is first created to initalise the main properties of the object (e.g. its x and y position, dimensions, colour, etc.) class Car(pygame. sprite. ... # Fetch the rectangle object that has the dimensions of the image.
27th Apr 2021, 10:41 PM
❤️😍Prerana😍❤️
❤️😍Prerana😍❤️ - avatar
0
thanks. Mirielle
27th Apr 2021, 1:17 PM
Joachim Bharathi
Joachim Bharathi - avatar