Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from gasp import *
- from random import randint
- def place_player():
- player_x = 10 * randint(0, 63) + 5
- player_y = 10 * randint(0, 47) + 5
- Circle((player_x, player_y), 5)
- def move_player():
- print("I'm moving...")
- update_when('key_pressed')
- begin_graphics()
- finished = False
- place_player()
- while not finished:
- move_player()
- end_graphics()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement