On the Modular 3D Bullet Game, I was a game designer. My duties included:
Scripting gameplay features such as character movement, camera controls, and player combat.
Implementing AI movement, sense, and attacks.
Implementing UI elements (Health and Score).
Ensuring all scripts are readable and easily editable.
The spawning system was made by spawning in each enemy type using a For loop for the amount of enemies are set for that round. After all enemies have been eliminated all values will go up including enemy amount, health, projectile speed, fire rate, and movement speed. Each enemy will spawn just outside the range of the viewport. Then finally it checks if all enemies have been cleared from the array and if true will run the spawn enemies function again. Please look at the images below to see the scripts involved in creating the spawn system.
(Melee and ranged enemies are spawned in the same way.)
Players will be able to shoot a projectile towards the mouse location when an enemy is on-screen. To create this I check each enemy to see if they are within the viewport. If true then the spawn the projectile facing in the direction of the mouse location (delay for fire rate).