forked from s464965/WMICraft
wejscie na pole
This commit is contained in:
parent
86aa939433
commit
c927bab887
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user