REFACTOR assets
This commit is contained in:
@@ -15,8 +15,8 @@ class Game(GameState):
|
||||
def __init__(self, switch_state_callback, context):
|
||||
super().__init__(switch_state_callback, context)
|
||||
|
||||
match_data_path = f"maps/{self.match.map_name}.json"
|
||||
match_image_path = f"maps/{self.match.map_name}.png"
|
||||
match_data_path = f"assets/maps/config/{self.match.map_name}.json"
|
||||
match_image_path = f"assets/maps/overview/{self.match.map_name}.png"
|
||||
|
||||
# Screen Areas
|
||||
self.info_box = pygame.Surface((350, self.screen.get_height()), pygame.SRCALPHA)
|
||||
|
||||
@@ -17,7 +17,7 @@ class StartMenu(GameState):
|
||||
self.default_button_width = self.screen.get_width() * 0.8
|
||||
|
||||
# logo
|
||||
self.logo = pygame.image.load("assets/logo.png").convert_alpha()
|
||||
self.logo = pygame.image.load("assets/images/logo.png").convert_alpha()
|
||||
self.logo_scale = 0.7
|
||||
self.logo = pygame.transform.smoothscale(self.logo, (self.logo.get_rect().size[0] * self.logo_scale, self.logo.get_rect().size[1] * self.logo_scale))
|
||||
|
||||
@@ -84,7 +84,7 @@ class StartMenu(GameState):
|
||||
demo_parser = demoparser2.DemoParser(demo_file)
|
||||
game_info = demo_parser.parse_ticks(["X", "Y", "Z", "pitch", "yaw", "is_alive", "team", "player_steamid",
|
||||
"team_rounds_total", "team_num", "total_rounds_played", "shots_fired",
|
||||
"kills_total", "deaths_total", "assists_total",
|
||||
"kills_total", "deaths_total", "assists_total", "inventory",
|
||||
"health", "armor_value", "active_weapon_name"])
|
||||
header_info = demo_parser.parse_header()
|
||||
map_name = header_info['map_name']
|
||||
|
||||
Reference in New Issue
Block a user