Operation Null Mind 0.4.1
A 2D roguelike top down shooter game made with SDL2
 
Loading...
Searching...
No Matches
hud.c File Reference
#include <hud.h>
#include <app.h>
#include <UI_text.h>
#include <string.h>
#include <minimap.h>
#include <stdio.h>
#include <interactable.h>
#include <player.h>

Functions

void HUD_Start ()
 
void HUD_RenderBar (Vec2 position, float value, float maxValue, SDL_Texture *icon, const char *text)
 
void HUD_RenderHealthBar ()
 
void HUD_RenderAmmoBar ()
 
void HUD_RenderCurrentGun ()
 
void HUD_RenderCurrentLevel ()
 
void HUD_RenderSkillIcons ()
 
void HUD_RenderAmmoDisplay ()
 
void HUD_Render ()
 

Variables

Vec2 barSize = {120, 14}
 
Vec2 iconSize = {10, 10}
 
float barX = 10
 
float iconX = 22
 
Animation * HUD_gun = NULL
 

Function Documentation

◆ HUD_Render()

void HUD_Render ( )

◆ HUD_RenderAmmoBar()

void HUD_RenderAmmoBar ( )

◆ HUD_RenderAmmoDisplay()

void HUD_RenderAmmoDisplay ( )

◆ HUD_RenderBar()

void HUD_RenderBar ( Vec2  position,
float  value,
float  maxValue,
SDL_Texture *  icon,
const char *  text 
)

◆ HUD_RenderCurrentGun()

void HUD_RenderCurrentGun ( )

◆ HUD_RenderCurrentLevel()

void HUD_RenderCurrentLevel ( )

◆ HUD_RenderHealthBar()

void HUD_RenderHealthBar ( )

◆ HUD_RenderSkillIcons()

void HUD_RenderSkillIcons ( )

◆ HUD_Start()

void HUD_Start ( )

Variable Documentation

◆ barSize

Vec2 barSize = {120, 14}

◆ barX

float barX = 10

◆ HUD_gun

Animation* HUD_gun = NULL

◆ iconSize

Vec2 iconSize = {10, 10}

◆ iconX

float iconX = 22