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

Handles rendering of weapons and weapon effects. More...

#include <gun.h>
#include <input.h>
#include <player.h>

Functions

void Gun_Render ()
 [Render] Renders the player's current gun and its corresponding particles
 

Detailed Description

Handles rendering of weapons and weapon effects.

Manages the rendering of gun sprites, muzzle flashes, and ejected casings with proper layering.

Author
Mango
Date
2025-03-05

Function Documentation

◆ Gun_Render()

void Gun_Render ( )

[Render] Renders the player's current gun and its corresponding particles

Renders all guns.

Draws the current weapon with proper rotation and flipping, and renders muzzle flash and casing particles with correct layering based on weapon orientation.