Skip to content

Instantly share code, notes, and snippets.

@meyer9
Created August 10, 2012 19:17
Show Gist options
  • Save meyer9/3317029 to your computer and use it in GitHub Desktop.
Save meyer9/3317029 to your computer and use it in GitHub Desktop.
Main.py 2nd revision
import pygame
from player import Player
screen = pygame.display.set_mode((640, 400))
running = 1
player=Player("player.png", (100,100))
while running:
event = pygame.event.poll()
if event.type == pygame.QUIT:
running = 0
screen.fill((100, 127, 180))
screen.blit(player.image, player.position)
pygame.display.flip()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment