Skip to content

6 Technical Design Document

FrancPS edited this page Jun 16, 2021 · 33 revisions

TDD


Character Skills

1. Fang - Dash
A stretch trail effect must be added following Fang's movement when using the Dash.
No new animations.
Cooldown: 2 seconds (needs testing)
Skill Active Time: Instantaneous

Fang must be invulnerable when dashing. Deactivate collisions when in dash state. Might be achieved with an if_statement inside OnCollision.
Ensure that no damage is recieved while dashing, and can dash through lasers.
The player can only be able to dash inside the nav mesh. Any obstacles shortens the dash, and cannot jump over non-navmesh space.

2. Fang - EMP Field
Similar particle effect as switch. (Ideally, sphere mesh as a particle, but might be not necessary).
Full body animation.
Full body enemy animation: Stunned.
Cooldown: 7 seconds (needs testing)
Skill Active Time: Instantaneous

The field is represented using particles: A hemispherical electic field that grows from Fang's center to a certain radius.
The interaction is performed using a Kinematic Sphere Collider, part of the Player (or Fang) GameObject, or a child of it.
This collider is created with radius 0. When activating the ability, it expands the collider to the radius of effect, and returns to 0 when the skill finishes.
This expansion can be instantaneous, no deltaTime is needed for the radius growth, but the expansion moment shuld make sense with the particles, so a timing delay might be needed.
Consider that the collider can detect collisions when an enemy is barely in contact with it. The radius should be adapted and maybe reduced to make sense with the visual effects.
The collider must interact with enemies and enemy bullets, so a new Collision Layer might be necessary.
Enemies will become stunned, and bullets will be destroyed.
Enemies will need a new state: Stunned. In this state, they become static for some seconds. More details on this in next chapter.

3. Fang - Ultimate
Particles with spherical emmitter, with shot effects in every direction. Full body animation.
Cooldown: 15 seconds (needs testing)
Skill Active Time: 2 seconds (needs testing)

Another Kinematic Sphere Collider will be needed for this ability. Maybe it is possible to reuse the same Collider as in EMP Field.
It will also work similarly: will start at radius 0, expand while the skill is activated, remain there for the active time, and return to 0 when finishes.
Enemy Bullets will also be destroyed when colliding with it. (Design Team is considering this)
Enemies inside it will take big amout of damage over time spans of 0.5 seconds.
For the duration of the skill, other skills are deactivated, including Switch and shooting. (This will be the same for Onimaru's Ultimate).

4. Onimaru - Shield
TO DEFINE: Particle Effects
Secondary animations: Shield, Shield+Shoot.
Cooldown: 7 seconds (needs testing)
Skill Active Time: 5 seconds (needs testing)

An energy shield mesh apears in front of Onimaru, originating at its left arm.
A GameObject child of Onimaru that contains the mesh, collider, and particle effects.
The default state of the Shield GameObject is "deactivated", and scaled to 0.
On skill activation, the Shield object is activated and grows to proper size.
The Material of the mesh should have lighting reactions disabled. (<-Nil)
TO DEFINE: Shield mesh shape
TO DEFINE: Collider shape
Melee enemies can walk through the shield (if the shield mesh is big enough to pretrude the Onmiaru Agent space).
Any attack (melee or range) impacting the shield does 0 damage to the player.
Bullets will be destroyed, melee attack colliders will be disabled too.

5. Onimaru - Energy Blast
TO DEFINE: Particle Effects
Secondary animations: Energy blast, Energy Blast+Shoot.
Full body enemy animation: Pushed Back (Hurt animation will be reused for this).
Cooldown: 7 seconds (needs testing)
Skill Active Time: Instantaneous

A 30º cone AoE originating at Onimaru's left arm that pushes back enemies. (Angle and height of the cone needs balancing.)
Any enemy caught in the cone is pushed back. PushBackDirection = (enemyOrigin - coneOrigin). PushBackDistance = constant (needs balancing).
Does a bit of damage (30-50% of shot damage). (Design Team is considering including this or not).

6. Onimaru - Ultimate
TO DEFINE COMPLETLY.
Machinegun Overcharge. Oni becomes stationary (slower rotation), shoots an increased amount of bullets that are faster and deal


Enemy Skills


Enemy States

1. Moving

2. Attacking

3. Death

4. Stunned
Cannot move or attack. All the AI of the enemy is cancelled.
TO DEFINE: Electical particles around its body.
TO DEFINE: Another albedo overlay color will be added when the enemy is at this state.


Environment Traps

1. Lasers
TO DEFINE: Particle Effects
The laser beam will have a collider that will deal damage over time, similar to Fang's Ultimate.
2. Fire Floor

Clone this wiki locally