CoilBrew / sidescroller

0 stars 0 forks source link

Connect player position variable with player position on screen #4

Closed chrisgrounds closed 6 years ago

chrisgrounds commented 7 years ago

Adam has created a player position variable which changes on key input. However, only the position variable updates - the image on screen stays in the same place. Do you want to make it so that when the player position variable changes, so does the player image.

The way I would do it would be to change this line:

DISPLAY.blit(burritoMan, (STARTX, STARTY))  #After moving, reload the image at new position  

so that the x and y values are taken from the Player class.