edited comments in examples
This commit is contained in:
parent
30719ab6d8
commit
af2e74ce1b
4 changed files with 89 additions and 89 deletions
|
@ -38,7 +38,7 @@ while run:
|
||||||
playerRect.x += start_pos[0]-win.position[0] # Set player rect x pos relatively start window position
|
playerRect.x += start_pos[0]-win.position[0] # Set player rect x pos relatively start window position
|
||||||
playerRect.y += start_pos[1]-win.position[1] # Set player rect y pos relatively start window position
|
playerRect.y += start_pos[1]-win.position[1] # Set player rect y pos relatively start window position
|
||||||
win.draw.rect((0,0,0),playerRect)
|
win.draw.rect((0,0,0),playerRect)
|
||||||
# print(playerRect)
|
|
||||||
atemp = apple.copy() # Create copy of apple rect
|
atemp = apple.copy() # Create copy of apple rect
|
||||||
atemp.x += start_pos[0]-win.position[0] # Set apple x pos relatively start window position
|
atemp.x += start_pos[0]-win.position[0] # Set apple x pos relatively start window position
|
||||||
atemp.y += start_pos[1]-win.position[1] # Set apple y pos relatively start window position
|
atemp.y += start_pos[1]-win.position[1] # Set apple y pos relatively start window position
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue