Guard - AlexisBliesener/Bewitched GitHub Wiki

Guard

Overview

  • Name: Guard
  • Type: close - Mid range
  • Stage Range: 1
  • Threat Level: Moderate
  • Biome: Prison
  • Role: Defender, safe, holds down ground
  • Concept Image: Guard
  • Mood Board: Mood Board

Behavior & AI

Core Behavior

  • Aggression Type: Guarded, moves in a military fashion.
  • Attack Pattern: Blocks when approaching and when at a distance, closes distance to thrust his spear, then retreats after.

Movement

  • Ground

  • Speed: Moderate

  • Pathfinding: Basic pathfinding with priority on maintaining distance

  • Marches with a military cadence, shield at side, spear held straight up.

  • Idle: standing at attention, shield half-raised, spear slightly tilted forward.

  • Patrols very rigidly or stands at attention at a post.

  • Moves in pairs or more

  • Jump: none

  • Behavior:

    • When player is seen, approach and raise shield at certain point when close
    • When close enough go for a strike
    • Approaches in defensive stance
    • Shield wall, approach in lines grouping up
    • Only one attacks at a time in the wall form, cycling on and off
    • Should generally operate separately from other guards, to encourage the player to go around the shield
    • If by themself, they just cycle with themself
    • On low health go into defense hold shield and try to box them in
  • Patrolling

    • In the guard component there is a variable called numPatrolPoints; set this to however many you want but three is default
    • Then click on the 3 dots of the guard component and there will be four functions near the bottom
      • Create Patrol Objects: Instantiates spheres representing the points, setting them in a line if points have not been set yet
      • Set Patrol Points: Sets the actual destination points wherever the spheres are
      • Delete Patrol Objects: Destroys the spheres so they are not visible in scene
      • Destroy All Patrol Points: Used to reset the patrol points and the objects to start from fresh
    • Use these to make the guard follow specific paths along points

Combat Stats (will come later)

Attribute Value Notes
Health 66 Durable for an early-game enemy
Damage 8
Armor Reduces incoming damage slightly
Attack Cooldown Between spear thrusts
Range Long
Magnetism Low
Speed Low-medium. Moves slower when blocking

Abilities & Attacks

Primary: Spear Thrust

  • Type: Mid range melee attack
  • Description: The Guard thrusts a steel-tipped spear forward.
    • Range needs to be adjusted from pre-production, it was too long from there.
    • Combo attributes: 3 hits. Third hit has high knockback and significant recovery time. Player should choose between forcing one enemy away or switching stagger focus

Secondary: Block

  • Type: Close range defense
  • Description: Raises shield to block incoming attacks when an enemy is within melee range. Stops damage taken from the front.
    • The shield can be held as long as the player likes. Enemies will generally hold it while close to the player, unless they are attacking
    • Cannot change facing direction while blocking. Does not block damage from the side, allowing the block to be countered by clever mobility.
    • If the shield is raised right before an attack hits it, the enemy who attacked is Stunned, giving an opportunity to follow-up
    • While blocking, the guard moves at a much slower pace (about 1/3-speed).
    • While blocking, the spear is held behind the guard, spear tip angled down to indicate that he will not attack.

Death Behavior

  • Death Effect:
    • Shield and spear gets thrown
    • guard get thrown up and back and falls
  • Upgrade Drop Chance:

Documentation