Enemy Spawning method in a Top-Down Shooter
Posted
by
Chris Waters
on Game Development
See other posts from Game Development
or by Chris Waters
Published on 2010-08-13T21:47:06Z
Indexed on
2012/07/01
15:24 UTC
Read the original article
Hit count: 272
I'm working on a top-down shooter akin to DoDonPachi, Ikaruga, etc. The camera movement through the world is handled automatically with the player able to move inside of the camera's visible region.
Along the way, enemies are scripted to spawn at particular points along the path. While this sounds straightforward, I could see two ways to define these points:
- Camera's position: 'trigger' spawning as the camera passes by the points
- Time along path: "30 seconds in, spawn 2 enemies"
In both cases, the camera-relative positions would be defined as well as the behavior of the enemy.
The way I see it, the way you define these points will directly affect how the 'level editor', or what have you, will work.
Would there be any benefits of one approach over the other?
© Game Development or respective owner