Git Product home page Git Product logo

Comments (4)

tswast avatar tswast commented on April 28, 2024

How to represent a weight for the next frame in the clip? Maybe this clip idea should become even a tagging system than part of the actual data structure and every transition is represented by a transition?

from pikov.

tswast avatar tswast commented on April 28, 2024

I know I want to be able to handle transitions based on events (such as key presses). Is there a more generic way to handle this? I guess since we are defining a default behavior of weight = 1 (as compared to a default of weight 0), random transitions will always take the least precedence.

from pikov.

tswast avatar tswast commented on April 28, 2024

A thought on the more generic way to handle event-based transitions: think of a transition edge as a function whose range is a probability weight (and I guess the transformed sprite state, too, since transitions should be responsible for x-y-offsets between frames).

The input is the original sprite state and any subscribed-to events that have happened.

from pikov.

tswast avatar tswast commented on April 28, 2024

Probably we'd want integer priority tiers for event handlers. Try all the event handlers in a priority tier and turn those results into probabilities of which function to actually apply. If all event handlers return 0, then move on to the next tier.

from pikov.

Related Issues (20)

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.