Open pathunstrom opened 4 years ago
Some ideas for "common" (idk how common they are) time-related functionality:
My quick prototype:
@call_repeatedly(seconds=0.5)
def beat(self, event, signal):
stuff
def on_update(self, event, signal):
self.beat(event, signal)
Is pathing similar to easing? Or do you intend for it to interact with a navigation mesh?
Like, it would potentially have an easing aspect?
Honestly, pathing is an entire rabbit hole of options, but it's the basic concept of "moving a sprite along a predetermined path", which sounds tricky.
It was inspired by @ironfroggy's seed magic screenshot, where there's a sparkle sprite that follow a non-trivial path from the play space to the avatar. https://i.imgur.com/gON4Ejg.gif
@astronouth7303 Those sparkles are moving with a bezier-path utility I implemented in the engine. That and the lerp utilities it's built on would be useful in addition to the timing utilities in ppb, but based on my experience building them I definitely would consider them separate from timing-related utilities.
We should provide tools to handle the various timing related tasks. We have some fixed patterns throughout the code base, but it'd be nice to handle those a step up.