Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pygame
- pygame.init()
- class FWC(pygame.sprite.Sprite):
- def __init__(self, x, y, img):
- pygame.sprite.Sprite.__init__(self)
- self.image = img
- self.rect = self.image.get_rect()
- self.rect.topleft = (x, y)
- def update(self):
- pass
- #create sprite groups
- wall_group = pygame.sprite.Group()
- floor_group = pygame.sprite.Group()
- ceiling_group = pygame.sprite.Group()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement