lambdaclass / champions_of_mirra

Curse of Mirra game codebase
https://curseofmirra.com/
Apache License 2.0
42 stars 4 forks source link

[VFX] New Skill indicators #1874

Closed DmytroTkachukPingleStudio closed 1 day ago

DmytroTkachukPingleStudio commented 1 week ago

Motivation

Added new skill indicators for H4ck, Kenzu, Muflus, Otix, Uma, and Valtimer. They are all packed into prefabs named "SkillIndicator_" followed by the character's name. Most objects contain a special script called LookAtController that rotates the object towards the lookAtRoot transform when enabled. This allows control of only the Aim object, so other objects that "look at it" will automatically rotate towards it. All radial indicators use a shader that offsets vertex positions so their lines have the same thickness regardless of scale. This shader allows us to avoid using additional scripts or other solutions. Most textures were packed into separate channels, but there are also originals of every texture for debugging purposes.

Summary of changes

Added separate prefabs for each characters skill indicator. Added LookAtController.cs. Added test scene for testing all indicators.

How has this been tested?

There is a dedicated test scene, VFX_SkillIndicators_test_Scene.unity, that contains all characters followed by their skill indicators.

Checklist