PedrelliLuca / ScalarField

A TopDown RPG Game, where magic works by interacting with the environment.
4 stars 0 forks source link

Skill: Cone of Cold #22

Closed PedrelliLuca closed 2 years ago

PedrelliLuca commented 2 years ago

What?

When executed, the caster channels a cone that lowers the temperature in front of him. Like every spell that requires channeling, the mana cost of this skill is paid over time. The channeling stops if:

  1. The player explicitly aborts the skill by pressing Q
  2. The skill is cast for its entire duration/channeling time
  3. The player finishes its mana before the skill's channeling time ends

While channeling, the caster's character can only rotate in place, it cannot change location. The rotation occurs by having the character always look in the direction of the cursor. This causes the cone of cold to rotate with the character. Below is an explanatory picture:

image

How?

This is the first skill in the game that will require a channeling state, which is the last state I have to implement before closing #15.