REFACTOR: moved render components into seperate module

ADD: Health bar
This commit is contained in:
2025-03-19 19:03:37 +01:00
parent e168e413e0
commit 45abd430dc
7 changed files with 60 additions and 43 deletions

View File

@@ -8,7 +8,8 @@ def main():
demo_parser = demoparser2.DemoParser("demo.dem")
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"])
"team_rounds_total", "team_num", "total_rounds_played", "shots_fired",
"health"])
header_info = demo_parser.parse_header()
map_name = header_info['map_name']
players = demo_parser.parse_player_info()
@@ -17,7 +18,6 @@ def main():
team_1.set_ct()
team_2 = Team()
m = Match(map_name, game_info, team_1, team_2)
m.tick = 1800
for index, row in players.iterrows():
if row["team_number"] == 2:
team_1.add_player(Player(row["name"], row["steamid"]))