Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Cyanilux/Cards
A few scripts which controls interactions for a hand of cards. Card model, shadergraph and example setup included.
https://github.com/Cyanilux/Cards
card-game cards playing-cards unity
Last synced: 3 months ago
JSON representation
A few scripts which controls interactions for a hand of cards. Card model, shadergraph and example setup included.
- Host: GitHub
- URL: https://github.com/Cyanilux/Cards
- Owner: Cyanilux
- License: mit
- Created: 2020-08-30T12:52:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-30T14:09:52.000Z (over 4 years ago)
- Last Synced: 2024-08-02T05:13:34.076Z (6 months ago)
- Topics: card-game, cards, playing-cards, unity
- Language: C#
- Homepage:
- Size: 53.7 KB
- Stars: 127
- Watchers: 2
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this 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
:)