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

Implements update logic for Echo enemy type. More...

#include <enemy_echo.h>
#include <player.h>
#include <time_system.h>
#include <random.h>
#include <circle.h>
#include <math.h>

Functions

void Echo_Update (EnemyData *data)
 [PostUpdate] Updates the Echo enemy's state
 
void Echo_UpdateGun (EnemyData *data)
 
void Echo_UpdateParticles ()
 

Detailed Description

Implements update logic for Echo enemy type.

Contains the AI behavior and state updates for the Echo enemy.

Author
Mango
Date
2025-03-22

Contains the AI behavior and state updates for the Echo enemy, which uses a teleportation-based movement pattern.

Author
Mango
Date
2025-03-06

Function Documentation

◆ Echo_Update()

void Echo_Update ( EnemyData *  data)

[PostUpdate] Updates the Echo enemy's state

This function is called each frame to update the Echo enemy's behavior. The Echo enemy mimics player movements with a delay.

Parameters
dataPointer to the enemy data structure

◆ Echo_UpdateGun()

void Echo_UpdateGun ( EnemyData *  data)

◆ Echo_UpdateParticles()

void Echo_UpdateParticles ( )