import pygame class BaseObject(): def __init__(self,x,y,game,w=10,h=10): self.rect = pygame.Rect([x,y,w,h]) self.baserect = self.rect.copy() self.game = game self.sprite = game.sprite_lib["icon.png"] self.spriteoffset = 0,0 self.handlepause = False self.depth = 1 # Sa "profondeur", déterminera l'odre d'affichage des objets def step(self): pass def draw(self): # Drawed on the surface with camera adjustement if self.sprite: self.game.window.blit(self.sprite,self.rect[:2]) def afterdraw(self): # Drawed on the surface after camera adjustement, must draw on game.realwindow pass