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

Handles enemy spawning and initialization. More...

#include <enemy.h>
#include <stdlib.h>
#include <maps.h>

Functions

void Enemy_Spawn (EnemyData data, Vec2 position)
 [Utility] Spawns an enemy of the given type at the specified position
 

Detailed Description

Handles enemy spawning and initialization.

Contains functionality for creating new enemy instances based on templates and positioning them in the game world.

Author
Mango
Date
2025-03-03

Function Documentation

◆ Enemy_Spawn()

void Enemy_Spawn ( EnemyData  data,
Vec2  position 
)

[Utility] Spawns an enemy of the given type at the specified position

Creates a new enemy instance based on the provided template and initializes it at the given position. If no position is provided (NULL), a random valid position is chosen.

Parameters
dataThe enemy data template to use for spawning
positionPosition vector for enemy spawn location