Operation Null Mind 0.4.1
A 2D roguelike top down shooter game made with SDL2
 
Loading...
Searching...
No Matches
lazer_system.c File Reference
#include <vec2.h>
#include <colliders.h>
#include <player.h>
#include <math.h>
#include <camera.h>
#include <app.h>
#include <lazer_system.h>

Functions

void Lazer_Update (Lazer *lazer)
 Updates the lazer's position and handles collisions.
 
void Lazer_Render (Lazer *lazer)
 Renders a lazer with a glowing effect.
 

Function Documentation

◆ Lazer_Render()

void Lazer_Render ( Lazer *  lazer)

Renders a lazer with a glowing effect.

Parameters
lazerPointer to the Lazer struct containing its properties

◆ Lazer_Update()

void Lazer_Update ( Lazer *  lazer)

Updates the lazer's position and handles collisions.

Parameters
lazerPointer to the Lazer struct containing its properties