Skip to content

Create basic unit class with walk/attack abilities

Objective

Implement the core unit system with modular abilities, focusing on basic movement and combat for MVP functionality.

Requirements

  • Modular Design: Single unit class with ability arrays (walk, attack)
  • Movement System: Units can pathfind and move across the map
  • Combat System: Units can attack enemy units and buildings
  • State Management: Track unit health, position, and current actions

Technical Details

  • Create base Unit class with ability system
  • Implement Walk ability for movement and pathfinding
  • Implement Attack ability for combat mechanics
  • Add unit state synchronization between client/server
  • Create unit spawning and cleanup systems
  • Handle unit collision detection

Acceptance Criteria

  • Units can be spawned on the map
  • Units move toward targets using pathfinding
  • Units attack enemies when in range
  • Unit state is synchronized across clients
  • Unit health and damage system works correctly

Milestone Relation

Core gameplay mechanic for MVP combat system. Required for basic AI vs player battles and foundational for all future unit types.