Début de rendu de la vie
This commit is contained in:
parent
c4a19bbcbb
commit
866d964c25
|
@ -488,6 +488,11 @@ class Renderer:
|
||||||
def render_boss_fight_scene(self, delta: float):
|
def render_boss_fight_scene(self, delta: float):
|
||||||
"""Rend les sprites du joueur et du boss lors d'un combat de boss."""
|
"""Rend les sprites du joueur et du boss lors d'un combat de boss."""
|
||||||
|
|
||||||
|
# On rend le fond qui correspond au points des 2 concurents
|
||||||
|
total_point = self.engine.boss_fight_manager.player_points + self.engine.boss_fight_manager.boss_points
|
||||||
|
draw.rect(self.window, (75, 50, 255), (0, 0, math.ceil(display.get_window_size()[0]*(self.engine.boss_fight_manager.player_points/total_point)), display.get_window_size()[1]))
|
||||||
|
|
||||||
|
|
||||||
# On récupère l'image de l'animation du boss
|
# On récupère l'image de l'animation du boss
|
||||||
boss_animation: Anim = self.boss_fight_boss_animations[self.engine.boss_fight_manager.current_boss_animation]
|
boss_animation: Anim = self.boss_fight_boss_animations[self.engine.boss_fight_manager.current_boss_animation]
|
||||||
frame = boss_animation.get_frame(delta)
|
frame = boss_animation.get_frame(delta)
|
||||||
|
|
Loading…
Reference in a new issue