Migration to Codeberg
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# library imports
|
||||
import pygame
|
||||
|
||||
class Sprite(pygame.sprite.Sprite):
|
||||
|
||||
def __init__(self,pos,surf,groups):
|
||||
super().__init__(groups)
|
||||
self.image = surf
|
||||
self.rect = self.image.get_rect(topleft = pos)
|
||||
self.hitbox = self.rect.inflate(0,-self.rect.height / 3)
|
||||
Reference in New Issue
Block a user