Created
August 10, 2012 19:17
-
-
Save meyer9/3317029 to your computer and use it in GitHub Desktop.
Main.py 2nd revision
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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