Add Boob lamp
This commit is contained in:
Michał Gdula 2023-01-30 08:28:14 +00:00
parent 85f5ae9161
commit 07dd403dcd
3 changed files with 7 additions and 1 deletions

2
npc.py
View file

@ -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

View file

@ -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))

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB