Nebula Defender
AI-powered space defense game
About
Space shooter game demonstrating core AI concepts through interactive gameplay. Built intelligent AI enemies using Finite State Machines (FSM) with patrol/attack/dodge/retreat behaviors and Behavior Trees for complex decision-making. Features OOP design with inheritance hierarchies, real-time collision detection, and particle effects systems.
Each enemy type exhibits distinct behavioral patterns driven by its underlying state machine, creating emergent gameplay that feels dynamic and challenging. The Behavior Tree system layers on top of the FSM to handle complex multi-step decisions, such as when to break formation or coordinate attacks with nearby agents.
Key Features
- FSM enemy AI with 4 behavioral states (patrol, attack, dodge, retreat)
- Behavior Trees for complex decision-making
- 3 distinct AI agent types with unique behaviors
- OOP architecture with inheritance hierarchies
- Real-time collision detection system
- Particle effects and visual feedback
Architecture
Game architecture follows component-based design with AI agents implementing state machines for behavior control. Each enemy type inherits from a base agent class and overrides behavior patterns. The FSM system manages state transitions between patrol, attack, dodge, and retreat based on game conditions.