diff --git a/npc.py b/npc.py index 502ec5f..b2135be 100644 --- a/npc.py +++ b/npc.py @@ -91,7 +91,7 @@ class NPC(AnimatedSprite): # horizontal y_horz, dy = (y_map + 1, 1) if sin_a > 0 else (y_map - 1e-6, -1) - depth_horz = (y_horz - oy) / sin_a + depth_horz = ((y_horz - oy) / sin_a) + 0.0001 x_horz = ox + depth_horz * cos_a delta_depth = dy / sin_a diff --git a/object_handler.py b/object_handler.py index c73df0c..dfe4a09 100644 --- a/object_handler.py +++ b/object_handler.py @@ -26,6 +26,12 @@ class ObjectHandler: #add_sprite(AnimatedSprite(game, path=self.animated_sprite_path + 'red_light/0.png', pos=(3.5, 14.5))) #add_sprite(AnimatedSprite(game, path=self.animated_sprite_path + 'red_light/0.png', pos=(3.5, 18.5))) + add_sprite(SpriteObject(game, path=self.static_sprite_path + 'boob.png', pos=(5, 4), scale=0.75, shift=-0.2)) + add_sprite(SpriteObject(game, path=self.static_sprite_path + 'boob.png', pos=(8, 4), scale=0.75, shift=-0.2)) + add_sprite(SpriteObject(game, path=self.static_sprite_path + 'boob.png', pos=(5, 16), scale=0.75, shift=-0.2)) + add_sprite(SpriteObject(game, path=self.static_sprite_path + 'boob.png', pos=(8, 16), scale=0.75, shift=-0.2)) + + # NPC Map #add_npc(NPC(game)) add_npc(NPC(game, path=self.npc_sprite_path + 'peter-griffin/0.png', pos=(5, 18), scale=0.6, shift=0.38)) diff --git a/resources/sprites/static_sprites/boob.png b/resources/sprites/static_sprites/boob.png new file mode 100644 index 0000000..0b1d43a Binary files /dev/null and b/resources/sprites/static_sprites/boob.png differ