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

Handles bullet movement and collision logic. More...

#include <bullet.h>
#include <gun.h>
#include <player.h>
#include <enemy.h>

Functions

void Bullet_Update ()
 [PostUpdate] Updates all active bullets, handling movement and collisions
 

Detailed Description

Handles bullet movement and collision logic.

Updates the position, collision detection, and lifecycle of bullets fired from weapons in the game.

Author
Mango
Date
2025-03-06

Function Documentation

◆ Bullet_Update()

void Bullet_Update ( )

[PostUpdate] Updates all active bullets, handling movement and collisions

Updates the state of all active bullets.

Updates the position of all bullets, checks for collisions with enemies and walls, and handles impact effects when collisions are detected.

Todo:
[bullet_update.c:55] Play bullet impact sfx here