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

Implements the controls screen for Operation Null Mind. More...

#include <controls.h>
#include <input.h>
#include <sound.h>
#include <app.h>
#include <ui_text.h>

Functions

void Controls_Start ()
 Initializes the controls screen Loads textures and UI elements needed for the controls screen.
 
void Controls_Update ()
 Updates the controls screen state Handles input and interaction with the controls screen.
 
void Controls_Render ()
 Renders the controls screen Displays the control scheme and navigation UI.
 

Variables

AppScene controlLastScene = SCENE_MENU
 
SDL_Texture * Controls_Background = NULL
 
UIElement * ControlsText = NULL
 
SDL_Rect ControlsTextRectBox
 
bool backHovered = false
 

Detailed Description

Implements the controls screen for Operation Null Mind.

Displays the game control scheme and allows the player to return to the menu

Author
Mango
Date
2025-04-05

Function Documentation

◆ Controls_Render()

void Controls_Render ( )

Renders the controls screen Displays the control scheme and navigation UI.

◆ Controls_Start()

void Controls_Start ( )

Initializes the controls screen Loads textures and UI elements needed for the controls screen.

◆ Controls_Update()

void Controls_Update ( )

Updates the controls screen state Handles input and interaction with the controls screen.

Variable Documentation

◆ backHovered

bool backHovered = false

◆ controlLastScene

AppScene controlLastScene = SCENE_MENU

◆ Controls_Background

SDL_Texture* Controls_Background = NULL

◆ ControlsText

UIElement* ControlsText = NULL

◆ ControlsTextRectBox

SDL_Rect ControlsTextRectBox