Guest User

Untitled

a guest
Dec 17th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. import pygame
  2.  
  3. class Display:
  4. screen = pygame.display.set_mode((800, 600))
  5.  
  6. def __init__(self, w, h):
  7. self.screen = pygame.display.set_mode((w, h))
  8. pygame.display.set_caption("PyGame")
  9. pygame.display.update()
  10.  
  11. def render(self, sprite):
  12. self.screen.blit(sprite.image, sprite.pos.get())
Add Comment
Please, Sign In to add comment