Skip to content

6 Technical Design Document

yBoixeda edited this page Jun 18, 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 (WORK IN PROGRESS)
Particles with spherical emmitter, with shot effects in every direction. Full body animation.
Cooldown: 60 seconds (needs testing)
Skill Active Time: 2 seconds (needs testing)
Movement: Fang is able to move at a slower speed while using this ultimate. But she doesn't follow mouse movement.

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 2 seconds.
For the duration of the skill, other skills are deactivated, including Switch and shooting. (This will be the same for Onimaru's Ultimate). Theres a delay between every tic of damage to every enemy. This is so they aren't all hurt or die at once.

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 (WORK IN PROGRESS)
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
TO DEFINE


DIALOGUES

(Find the dialogues text in [https://github.com/PenteractStudios/Penteract/wiki/1-World-Bible](World Bible) page)
Each dialogue popup is represented by the name and portrait of the talking character and its lines inside a textbox.
If the same character says multiple lines, these might be divided in separated textboxes.
The following example would be printed in 2 textboxes, one after the other, in the same dialogue popup.

Fang:

Hello!

Fang:

How are you?

1. Intro Cutscene

The intro cutscene will be played from a video stream, so the dialogues here will not have to be scipted in the engine.
This video will be generated using Maya rendering.
During the cutscene, there must appear an in-game SKIP button, that leads to the moment indicated in "World Bible" page.
At this moment the game starts and the 1st tutorial (Fang Skillset) appears.

2. Tutorials

The tutorials appear at the upper center of the screen.
After a tutorial appears in the screen, the game time should be stopped, so the player or enemies cannot move or shoot, and the animations are paused, etc. (The time stops after the sliding animation of the tutorial window.)
The game time reactivates at the moment the player inputs the key to close the tutorial (spacebar). (The time reactivates before closing the window, to be able to perform the close button and sliding animations.)

3. Dialogues

The dialogue windows will mostly appear during cutscenes.
Even so, some short dialogues will appear during some parts of the game (when finding an Upgrade or after some combats).
These dialogue windows will not block the game time, as they appear in "resting phases" of the gameplay.
The player should be able to advance though them and close them using the spacebar, while playing normally.

4. Upgrades

The Tutorial Upgrades windows appear in the same place as the Tutorials, but behave like Dialogues (they do not stop time).
The Upgrade Dialogues should appear always in the same order, independently of what item is picked up before.

Clone this wiki locally