diff --git a/gamedata/assets/collisionmapbroken.png b/gamedata/assets/collisionmapbroken.png new file mode 100644 index 0000000..4e866ab Binary files /dev/null and b/gamedata/assets/collisionmapbroken.png differ diff --git a/gamedata/assets/ingamebroken.png b/gamedata/assets/ingamebroken.png new file mode 100644 index 0000000..9c5a846 Binary files /dev/null and b/gamedata/assets/ingamebroken.png differ diff --git a/gamedata/assets/lemmings/selected.png b/gamedata/assets/lemmings/selected.png new file mode 100644 index 0000000..dbb15b6 Binary files /dev/null and b/gamedata/assets/lemmings/selected.png differ diff --git a/gamedata/objects/ingame/lemmings.py b/gamedata/objects/ingame/lemmings.py index 1babab7..95f954f 100644 --- a/gamedata/objects/ingame/lemmings.py +++ b/gamedata/objects/ingame/lemmings.py @@ -3,10 +3,10 @@ import random,math class Lemming(BaseObject): def __init__(self,x,y,game,speedmargin=5): - super().__init__(x,y,game,w=60,h=60) + super().__init__(x,y,game,w=70,h=70) self.direction = random.randint(0,360) self.holdrect = self.rect.copy() - self.holdradius = 65 + self.holdradius = 80 self.holdrect = self.holdrect.inflate(self.holdradius,self.holdradius) self.basespeed = max(30,40+random.randint(-speedmargin,speedmargin)) # Speed that he normally walks by self.holdtimer = game.lib.Timer(2.5) # Max seconds of holding @@ -16,7 +16,7 @@ class Lemming(BaseObject): self.selected = False # If beeing redirected self.cachedrel = [] # Storing relative movement of mouse self.cachedrelsize = 10 - self.mincachedsize = 5 + self.mincachedsize = 3 # Used for movement self.restx = 0 @@ -128,6 +128,8 @@ class Lemming(BaseObject): sprites = self.sprites[orientation] self.game.lib.drawcenter(self.game,self.game.sprite_lib["lemmings/shadow.png"],self.rect.center[0]-self.game.globals["camerax"],self.rect.center[1]-self.game.globals["cameray"]) self.game.lib.drawcenter(self.game,sprites[int(self.spriteindex)%len(sprites)],self.rect.center[0]-self.game.globals["camerax"],self.rect.center[1]-self.game.globals["cameray"]) + if self.selected: + self.game.lib.drawcenter(self.game,self.game.sprite_lib["lemmings/selected.png"],self.rect.center[0]-self.game.globals["camerax"],self.rect.center[1]-self.game.globals["cameray"]) if self.game.globals["debug"]: s = self.game.pygame.Surface(self.rect.size) s.fill([255,0,0])