Operation Null Mind 0.4.1
A 2D roguelike top down shooter game made with SDL2
 
Loading...
Searching...
No Matches
win_layout.c File Reference

Implements the win screen. More...

#include <win.h>
#include <UI_text.h>
#include <input.h>
#include <app.h>
#include <sound.h>
#include <game.h>
#include <stdio.h>

Functions

void Win_Start ()
 [Start] Initializes the win screen UI elements
 
void Win_Update ()
 [PostUpdate] Processes user input for the win screen
 
void Win_Render ()
 [Render] Draws the win screen to the screen
 

Variables

UIElement * floorReachedLabelElement
 
UIElement * runTimeLabelElement
 
UIElement * robotsDeactivatedLabelElement
 
UIElement * healingItemsLabelElement
 
UIElement * hitsTakenLabelElement
 
UIElement * ammoSpentLabelElement
 
UIElement * floorReachedValueElement
 
UIElement * runTimeValueElement
 
UIElement * robotsDeactivatedValueElement
 
UIElement * healingItemsValueElement
 
UIElement * hitsTakenValueElement
 
UIElement * ammoSpentValueElement
 

Detailed Description

Implements the win screen.

Manages the win screen UI layout, button interactions, and transitions between game and menu states.

Author
GitHub Copilot
Date
2025-04-08

Function Documentation

◆ Win_Render()

void Win_Render ( )

[Render] Draws the win screen to the screen

Renders the win screen.

Renders the win screen UI elements

◆ Win_Start()

void Win_Start ( )

[Start] Initializes the win screen UI elements

Initializes the win screen.

Creates the text elements that make up the win screen, positioning them appropriately on the screen.

◆ Win_Update()

void Win_Update ( )

[PostUpdate] Processes user input for the win screen

Updates the win screen state.

Checks for the ESC key press or button clicks to return to the main menu

Variable Documentation

◆ ammoSpentLabelElement

UIElement* ammoSpentLabelElement
extern

◆ ammoSpentValueElement

UIElement* ammoSpentValueElement
extern

◆ floorReachedLabelElement

UIElement* floorReachedLabelElement
extern

◆ floorReachedValueElement

UIElement* floorReachedValueElement
extern

◆ healingItemsLabelElement

UIElement* healingItemsLabelElement
extern

◆ healingItemsValueElement

UIElement* healingItemsValueElement
extern

◆ hitsTakenLabelElement

UIElement* hitsTakenLabelElement
extern

◆ hitsTakenValueElement

UIElement* hitsTakenValueElement
extern

◆ robotsDeactivatedLabelElement

UIElement* robotsDeactivatedLabelElement
extern

◆ robotsDeactivatedValueElement

UIElement* robotsDeactivatedValueElement
extern

◆ runTimeLabelElement

UIElement* runTimeLabelElement
extern

◆ runTimeValueElement

UIElement* runTimeValueElement
extern