mirror of
https://github.com/Project-Redacted/Gayme.git
synced 2025-05-14 06:52:16 +00:00
Fix NPC
Add Boob lamp
This commit is contained in:
parent
85f5ae9161
commit
07dd403dcd
3 changed files with 7 additions and 1 deletions
2
npc.py
2
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
|
||||
|
|
|
@ -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))
|
||||
|
|
BIN
resources/sprites/static_sprites/boob.png
Normal file
BIN
resources/sprites/static_sprites/boob.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
Loading…
Add table
Reference in a new issue