Cyanilux Cards Save

A few scripts which controls interactions for a hand of cards. Card model, shadergraph and example setup included.

Project README

Cards

See here for preview : https://twitter.com/Cyanilux/status/1296100597893148677

• Uses CardHandController.cs (and Card.cs) scripts to set position/rotation for a hand of cards based on curve, and allows for interactions with mouse.
• Intended to work in 3D. Doesn't really work that well with UI due to scaling differences. Worldspace UI or Screenspace-Camera might work?
• Can drag to reorder cards in hand. Drag a card outside the hand bounds and it starts tilting/wobbling based on mouse movement velocity.
• Releasing a card outside of the hand will trigger it to be used, and applies a dissolve shader effect.
• Card model, shadergraph and example scene setup included.
• Universal Render Pipeline required for shader to work, though the script should still work in other pipelines.
• Example cards also use Text Mesh Pro, and are rendered using an overlay camera & Forward Renderer feature to override Stencil values. While this isn't required, if the TextMeshPro material is set to use those stencil values (under debug settings on TMP material, Stencil ID 1, Stencil Comp 3 (aka equal)), it allows text to dissolve with the card (though still can show when overlapping with other cards)
• Doesn't really include actual gameplay elements, it's mostly just a controller for the hand of cards. Includes a very basic mana system though, so cards can only be used if there is enough mana.

@Cyanilux
:)

Open Source Agenda is not affiliated with "Cyanilux Cards" Project. README Source: Cyanilux/Cards
Stars
122
Open Issues
0
Last Commit
3 years ago
Repository
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating