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

Handles bullet functionality, including creation, movement and collision. More...

#include <particle_emitterpresets.h>
#include <gun.h>

Go to the source code of this file.

Functions

void Bullet_Start ()
 Initializes the bullet system.
 
void Bullet_Update ()
 Updates the state of all active bullets.
 
void Bullet_Render ()
 Renders all active bullets.
 

Detailed Description

Handles bullet functionality, including creation, movement and collision.

Author
Darren
Date
2025-03-16

Function Documentation

◆ Bullet_Render()

void Bullet_Render ( )

Renders all active bullets.

Draws all currently active bullets to the screen.

Renders all active bullets.

Draws all active bullet particles and their impact fragments from the current weapon's emitters.

◆ Bullet_Start()

void Bullet_Start ( )

Initializes the bullet system.

Sets up initial state for bullet tracking and management.

Initializes the bullet system.

Creates and configures the particle emitters used for bullets and bullet fragments, then assigns them to each weapon type.

◆ Bullet_Update()

void Bullet_Update ( )

Updates the state of all active bullets.

Handles bullet movement, collision detection and lifetime management.

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