Merge pull request 'wejscie na pole' (#14) from field into master

Reviewed-on: s464965/WMICraft#14
This commit is contained in:
Juliusz Sadowski 2022-04-05 10:55:49 +02:00
commit d0f9a66888

View File

@ -16,3 +16,6 @@ class Field(pygame.sprite.Sprite):
def busy_detection(self):
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
obj.rect = obj.clamp(self.rect)