Migration to Codeberg
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import pygame
|
||||
|
||||
class SimpleSprite(pygame.sprite.Sprite):
|
||||
def __init__(self,surf,pos,groups):
|
||||
super().__init__(groups)
|
||||
self.image = surf
|
||||
self.rect = self.image.get_rect(topleft = pos)
|
||||
|
||||
self.hitbox = self.rect.inflate(0,-self.rect.height / 2)
|
||||
|
||||
class LongSprite(pygame.sprite.Sprite):
|
||||
def __init__(self,surf,pos,groups):
|
||||
super().__init__(groups)
|
||||
self.image = surf
|
||||
self.rect = self.image.get_rect(topleft = pos)
|
||||
self.hitbox = self.rect.inflate(-self.rect.width * 0.8, -self.rect.height / 2)
|
||||
self.hitbox.bottom = self.rect.bottom -10
|
||||
Reference in New Issue
Block a user