poprawki field.py
This commit is contained in:
parent
c927bab887
commit
c75299e152
@ -17,5 +17,7 @@ class Field(pygame.sprite.Sprite):
|
||||
if self.texture_path == 'water.png' or self.texture_path == 'grass_with_tree.jpg':
|
||||
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)
|
||||
self.busy = True
|
||||
obj.update()
|
||||
|
Loading…
Reference in New Issue
Block a user