Hey Lois
|
@ -16,19 +16,19 @@ class ObjectHandler:
|
|||
# Sprite Map
|
||||
#add_sprite(SpriteObject(game))
|
||||
#add_sprite(AnimatedSprite(game))
|
||||
add_sprite(AnimatedSprite(game, path=self.animated_sprite_path + 'red_light/0.png', pos=(14.5, 5.5)))
|
||||
add_sprite(AnimatedSprite(game, path=self.animated_sprite_path + 'red_light/0.png', pos=(14.5, 7.5)))
|
||||
add_sprite(AnimatedSprite(game, path=self.animated_sprite_path + 'red_light/0.png', pos=(12.5, 7.5)))
|
||||
add_sprite(AnimatedSprite(game, path=self.animated_sprite_path + 'red_light/0.png', pos=(9.5, 7.5)))
|
||||
add_sprite(AnimatedSprite(game, path=self.animated_sprite_path + 'red_light/0.png', pos=(14.5, 12.5)))
|
||||
add_sprite(AnimatedSprite(game, path=self.animated_sprite_path + 'red_light/0.png', pos=(9.5, 20.5)))
|
||||
add_sprite(AnimatedSprite(game, path=self.animated_sprite_path + 'red_light/0.png', pos=(10.5, 20.5)))
|
||||
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(AnimatedSprite(game, path=self.animated_sprite_path + 'red_light/0.png', pos=(14.5, 5.5)))
|
||||
#add_sprite(AnimatedSprite(game, path=self.animated_sprite_path + 'red_light/0.png', pos=(14.5, 7.5)))
|
||||
#add_sprite(AnimatedSprite(game, path=self.animated_sprite_path + 'red_light/0.png', pos=(12.5, 7.5)))
|
||||
#add_sprite(AnimatedSprite(game, path=self.animated_sprite_path + 'red_light/0.png', pos=(9.5, 7.5)))
|
||||
#add_sprite(AnimatedSprite(game, path=self.animated_sprite_path + 'red_light/0.png', pos=(14.5, 12.5)))
|
||||
#add_sprite(AnimatedSprite(game, path=self.animated_sprite_path + 'red_light/0.png', pos=(9.5, 20.5)))
|
||||
#add_sprite(AnimatedSprite(game, path=self.animated_sprite_path + 'red_light/0.png', pos=(10.5, 20.5)))
|
||||
#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)))
|
||||
|
||||
# NPC Map
|
||||
#add_npc(NPC(game))
|
||||
add_npc(NPC(game, path=self.npc_sprite_path + 'baller/0.png', pos=(5, 18), scale=0.6, shift=0.38))
|
||||
add_npc(NPC(game, path=self.npc_sprite_path + 'peter-griffin/0.png', pos=(5, 18), scale=0.6, shift=0.38))
|
||||
|
||||
|
||||
def update(self):
|
||||
|
|
|
@ -32,9 +32,9 @@ class ObjectRenderer:
|
|||
|
||||
def load_wall_textures(self):
|
||||
return {
|
||||
1: self.get_texture('resources/textures/1.png'),
|
||||
2: self.get_texture('resources/textures/2.png'),
|
||||
3: self.get_texture('resources/textures/3.png'),
|
||||
4: self.get_texture('resources/textures/4.png'),
|
||||
5: self.get_texture('resources/textures/5.png'),
|
||||
1: self.get_texture('resources/textures/bg.jpg'),
|
||||
2: self.get_texture('resources/textures/bg.jpg'),
|
||||
3: self.get_texture('resources/textures/bg.jpg'),
|
||||
4: self.get_texture('resources/textures/bg.jpg'),
|
||||
5: self.get_texture('resources/textures/bg.jpg'),
|
||||
}
|
BIN
resources/sprites/npc/peter-griffin/0.png
Normal file
After Width: | Height: | Size: 78 KiB |
BIN
resources/sprites/npc/peter-griffin/attack/0.png
Normal file
After Width: | Height: | Size: 78 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
BIN
resources/sprites/npc/peter-griffin/idle/0.png
Normal file
After Width: | Height: | Size: 78 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
BIN
resources/sprites/npc/peter-griffin/walk/0.png
Normal file
After Width: | Height: | Size: 80 KiB |
Before Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 17 KiB |
BIN
resources/textures/bg.jpg
Normal file
After Width: | Height: | Size: 120 KiB |
|
@ -20,8 +20,8 @@ MOUSE_BORDER_RIGHT = WIDTH - MOUSE_BORDER_LEFT
|
|||
MOUSE_BORDER_TOP = 100
|
||||
MOUSE_BORDER_BOTTOM = HEIGHT - MOUSE_BORDER_TOP
|
||||
|
||||
FLOOR_COLOR = (69, 69, 69)
|
||||
ROOF_COLOR = (50, 50, 50)
|
||||
FLOOR_COLOR = (140,101,52) #(69, 69, 69)
|
||||
ROOF_COLOR = (113,95,58) #(50, 50, 50)
|
||||
|
||||
FOV = math.pi / 3
|
||||
HALF_FOV = FOV / 2
|
||||
|
|