field #15

Merged
s464869 merged 2 commits from field into master 2022-04-05 15:39:36 +02:00
Showing only changes of commit c75299e152 - Show all commits

View File

@ -17,5 +17,7 @@ class Field(pygame.sprite.Sprite):
if self.texture_path == 'water.png' or self.texture_path == 'grass_with_tree.jpg': if self.texture_path == 'water.png' or self.texture_path == 'grass_with_tree.jpg':
self.busy = True self.busy = True
def step_onto(self, obj):#ustawia objekt na srodku pola def step_onto(self, obj): # ustawia objekt na srodku pola
obj.rect = obj.clamp(self.rect) obj.rect = obj.clamp(self.rect)
self.busy = True
obj.update()