Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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

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?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading