Re-Create Defender in Unity - Part 10 @midniteoilsoftware
Re-Create Defender in Unity - Part 10  @midniteoilsoftware
Uploaded February 2023 | Updated September 2026, 2 weeks ago
In this Unity tutorial we will be re-creating the classic arcade game Defender.
Whether you're a complete beginner or a seasoned pro I think you will find this tutorial useful and entertaining.

In part 10 I made a minor change to the Defender logo but mainly focused on implementing the state machine logic for the enemy ships.
We get them flying around, shooting at the player and even abducting enemies from the planet surface.

Link to entire playlist:
youtube.com/playlist?list=PLHcOLPSLOK7MMD6ec488pE_5lz-nspqtp

Link to source code for Part 9:
gitlab.com/midnite-oil-software-tutorials/defender/-/tree/Part10

If you get stuck and need help join my Discord and post your questions there:
discord.gg/wrdqXPtw9y

In case you'd like to show your support by buying me a coffee:
ko-fi.com/gregorybradburn

00:00:00 - Intro
00:00:37 - Fix Defender logo issue
00:02:11 - Lander state machine
00:14:03 - Lander patrol state
00:33:55 - Intercept human state
00:50:45 - Abduct human state
01:00:53 - Diagnose abduct human logic error
01:02:01 - Mutate state
01:10:25 - Human state machine
01:20:52 - Add human state transitions
01:28:23 - Drop human passenger
01:32:09 - Diagnose death check issue
01:34:25 - Add enemy projectiles
01:48:38 - Diagnose enemy projectiles
01:53:19 - Outro

#madewithunity #unity2d #unitytutorial #indiedev #indiegamedev #arcade #defender #statemachine #ai
Re-Create Defender in Unity - Part 10How to Make a 3D Space Shooter Game in Unity - Tutorial Part 16Ninja Eggs 6 - Dev Log Featuring Several UpgradesRe-Create Defender in Unity - Part 12Chrono Collapse Game PlayGame Dev Interview with Rick Davidson of GameDev.tvHow I Use AI in Game DevelopmentLivestream-06: Ninja Eggs (Egg Patrol) - Debugging bullets and drawing aliensMidnite Oil Software LLC Lunchtime Live StreamHow to make a 3D Space Shooter Game in Unity - Tutorial Part 11Cinemachine Virtual Camera TransitionsUnity Game Dev Interview with Andrzej Gieralt
Midnite Oil Software LLC |

Re-Create Defender in Unity - Part 10

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER