How to manage scenes?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
RNavega
Party member
Posts: 251
Joined: Sun Aug 16, 2020 1:28 pm

Re: How to manage scenes?

Post by RNavega »

Hi. It's been a long time (that post was on Oct 2021).

My current view on the topic is: it's simpler if you just think of what you're trying to do on screen, and only then worry about the abstractions you need for those things to happen.
Visually, what you want to do is to have elements moving around on screen, with some elements moving by themselves and other elements moving together in groups as if glued together.

Whatever abstraction you want to use, as long as you get that result, you're done.

The abstractions that animated UI screens would need, in this case, include things like:
- The ability to have "animation track" objects (with CSS-style easing curves, or keyframes), an object that associates 'time' with an 'interpolated result'.
- The ability to bind the animated interpolated result of animation tracks to object properties (like color channels, transparency, location, rotation, scale, as well as shader inputs).
- The ability to bind one transform object to another transform object (parenting).
- The ability to play the animation tracks at will, like when the user clicks a button.
User avatar
BulbaMander
Citizen
Posts: 65
Joined: Sat Dec 15, 2012 7:00 pm

Re: How to manage scenes?

Post by BulbaMander »

It has been a long time. Sorry for necroposting but some people in the discord said it would be ok!

In the past I've given every object that needed to move it's own polynomial, and it kept track of it's own time. I really appreciate this concept of abstracting that into an animation track, and binding object properties to an animation track. I'm excited to try this approach, thanks for sharing.
It takes an idiot to do cool things. Thats why they're cool. :emo:
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 60 guests