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

Handles player collisions with the environment and entities. More...

#include <player.h>
#include <colliders.h>
#include <chunks.h>

Functions

bool Player_DetectCollision ()
 [Utility] Checks for and handles player collisions
 

Detailed Description

Handles player collisions with the environment and entities.

Contains functions for detecting and responding to player collisions with walls, enemies, projectiles, and interactive objects.

Author
Mango
Date
2025-03-04

Function Documentation

◆ Player_DetectCollision()

bool Player_DetectCollision ( )

[Utility] Checks for and handles player collisions

Detects collisions for player.

Detects if the player is colliding with any objects in the game world and triggers the appropriate response based on collision type.

Returns
bool True if collision detected, false otherwise