# 1 - Import libraryimport pygame
from pygame.locals import*# 2 - Initialize the game
pygame.init()
width, height =640, 480
screen=pygame.display.set_mode((width, height))
# 3 - Load images
player = pygame.image.load("resources/images/dude.png")
# 4 - keep looping throughwhile1:
# 5 - clear the screen before drawing it again
screen.fill(0)
# 6 - draw the screen elements
screen.blit(player, (100,100))
# 7 - update the screen
pygame.display.flip()
# 8 - loop through the eventsfor event in pygame.event.get():
# check if the event is the X button if event.type==pygame.QUIT:
# if it is quit the game
pygame.quit()
exit(0)
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems
resetting your password contact us
Check Your Email and Click on the link sent to your email