Code Monkey home page Code Monkey logo

cards's Introduction

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
:)

cards's People

Contributors

cyanilux avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.