Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pygame
- class Display:
- screen = pygame.display.set_mode((800, 600))
- def __init__(self, w, h):
- self.screen = pygame.display.set_mode((w, h))
- pygame.display.set_caption("PyGame")
- pygame.display.update()
- def render(self, sprite):
- self.screen.blit(sprite.image, sprite.pos.get())
Add Comment
Please, Sign In to add comment