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

Implements the pause menu screen. More...

#include <pause.h>
#include <UI_text.h>
#include <input.h>
#include <app.h>
#include <controls.h>

Functions

void Pause_Start ()
 [Start] Initializes the pause menu UI elements
 
void Pause_Update ()
 [PostUpdate] Processes user input for the pause menu
 
void Pause_Render ()
 [Render] Draws the pause menu to the screen
 

Detailed Description

Implements the pause menu screen.

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

Author
Mango
Date
2025-03-05

Function Documentation

◆ Pause_Render()

void Pause_Render ( )

[Render] Draws the pause menu to the screen

Renders the pause menu to the screen.

Renders the "Paused" header and buttons with appropriate hover effects.

◆ Pause_Start()

void Pause_Start ( )

[Start] Initializes the pause menu UI elements

Initializes the pause menu.

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

◆ Pause_Update()

void Pause_Update ( )

[PostUpdate] Processes user input for the pause menu

Updates the pause menu state based on user input.

Checks for button interactions and keyboard input to handle actions like resuming the game, viewing controls, or returning to the main menu.