Migration to Codeberg

This commit is contained in:
Joaquin Gottlebe
2026-07-30 16:38:22 +02:00
commit 17048b703a
556 changed files with 3040 additions and 0 deletions
+17
View File
@@ -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