Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pygame
- from vec2 import vec2
- class Image:
- pos = vec2(0, 0)
- image = pygame.image
- def __init__(self, path, pos):
- self.pos = pos
- self.image = pygame.image.load(path)
- def move(self, relpos):
- self.pos.x += relpos.x
- self.pos.y += relpos.y
Add Comment
Please, Sign In to add comment