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

Provides debug visualization and information display functionality. More...

#include <SDL.h>
#include <player.h>
#include <app.h>

Go to the source code of this file.

Functions

void Debug_RenderHitboxes ()
 Renders the hitboxes of game objects.
 
void Debug_RenderFPSCount ()
 Renders the current FPS count.
 
void Debug_RenderSpikeCount ()
 Renders the current spike count.
 
void Debug_RenderCurrentChunk ()
 Renders information about the current chunk.
 

Detailed Description

Provides debug visualization and information display functionality.

These functions are used to render debug information to the screen, such as hitboxes, FPS count, and other debug information.

Author
Mango
Date
2025-03-01

Function Documentation

◆ Debug_RenderCurrentChunk()

void Debug_RenderCurrentChunk ( )

Renders information about the current chunk.

Renders information about the current chunk.

Shows the coordinates of the current chunk and the next chunk in the main path.

◆ Debug_RenderFPSCount()

void Debug_RenderFPSCount ( )

Renders the current FPS count.

Renders the current FPS count.

Creates and updates a text element showing the current frames per second.

◆ Debug_RenderHitboxes()

void Debug_RenderHitboxes ( )

Renders the hitboxes of game objects.

Renders the hitboxes of game objects.

Iterates through all registered colliders and draws their hitboxes with different colors based on their collision layer.

◆ Debug_RenderSpikeCount()

void Debug_RenderSpikeCount ( )

Renders the current spike count.

Renders the current spike count.

Tracks and displays the number of frames that took longer than the target frame time (frames with fps below 30).