In Pygame, when building a character, why are we using x,y when we are already giving the width and height?

Question:

the pygame code

I am not understanding why we are putting x,y when we already have width and height for the character. Just wanted to know what’s the use of x,y in here?

Asked By: Jaima Shahira

||

Answers:

From these informations, it could mean many things, but the most likely is that, the width and height are the character’s width and height, while the x and y are the position of the character in the world.

Answered By: SjoCi
Categories: questions Tags:
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.