21 lines
624 B
C++
21 lines
624 B
C++
#include <iostream>
|
|
#include <string>
|
|
#include <vector>
|
|
#include <raylib.h>
|
|
#include "../define.h"
|
|
#include "../logic/structs.h"
|
|
#include "../logic/player.h"
|
|
#include "ui_elements.h"
|
|
#include "combat_interface.h"
|
|
|
|
void display_combat_interface(Player& player_arg, std::vector<Ennemy>& ennemies_arg, const std::vector<int>& screen_arg) {
|
|
std::vector<float> position = {0.5f, 0.5f};
|
|
Bar player_health = create_bar(HEALTH, player_arg.max_health, player_arg.health, position, screen_arg);
|
|
inc_health(player_arg, -5);*
|
|
|
|
//Dessin
|
|
BeginDrawing();
|
|
ClearBackground(BLACK);
|
|
draw_bar(player_health);
|
|
EndDrawing();
|
|
} |