Explain "sprites" in pygame python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson

Explain "sprites" in pygame python

What are sprites used for and how

26th Apr 2021, 3:51 AM
Joachim Bharathi
Joachim Bharathi - avatar
2 Answers
+ 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😍❤️ - avatar
thanks. Mirielle
27th Apr 2021, 1:17 PM
Joachim Bharathi
Joachim Bharathi - avatar