Bundles Of Joy
Programming |
Hello Universe!
Was working on the scheduling system... again... again
I decided to restructure a part of the system. In question: the "Node Container", Container of all nodes and phases. TBH, I don't remember why I needed to do this but It was absolutely necessary. I replaced the Node Container with a Bundle Node. So now, the container of nodes is a node. Does that make sense? I hope so.
Instead of a loop node, I added it as a flag to the Bundle Node, along side the async flag.
To simplify: the Bundle Node can be asynchronous and/or loop-able. The Bundle Node still has phases. Can hold multiple nodes. Can also hold Bundle Nodes. So we have bundles inside bundles. Bundles of joy everywhere.
<routine name="d1_intro"> <phase> <SetPosition x="1840"/> <Dialog> Doo doo doo di doo... What a beautiful day. Such~1.0~...~d~obedience~1.0~... </Dialog> <SetFlip flip-x="false" /> <SetAnimation animation_set="flowerman.animationSet" animation="flowerman_walk" loop="true" speed="1.5" /> <LerpPosition end-x="2090" speed="64" /> <SetAnimation animation_set="flowerman.animationSet" animation="flowerman_idle" loop="true" /> <Pause duration="6.0" /> </phase> <phase> <Bundle loop="true" loop-count="3"> <phase> <SetFlip flip-x="false" /> <SetAnimation animation_set="flowerman.animationSet" animation="flowerman_walk" loop="true" speed="1.5" /> <LerpPosition end-x="2390" speed="64" /> <SetAnimation animation_set="flowerman.animationSet" animation="flowerman_idle" loop="true" /> <Pause duration="6.0" /> </phase> <phase> </phase> <Bundle async="true"> <LerpPosition speed="100" end-y="-100" /> <FadeAlpha duration="20" reverse="false" /> </Bundle> <phase> <SetFlip flip-x="true" /> <SetAnimation animation_set="flowerman.animationSet" animation="flowerman_walk" loop="true" speed="1.5" /> <LerpPosition end-x="2090" speed="64" /> <SetAnimation animation_set="flowerman.animationSet" animation="flowerman_idle" loop="true" /> <Pause duration="6.0" /> </phase> </Bundle> </phase> </routine>
As an example I have a Bundle Node that is looping 3 times. Inside that I have another Bundle Node that is instead asynchronous.
Pretty coooool huh?
P.S. Sorry, no cool pictures. Happy New Year!!!
Deity
Secrets... Secrets... Secrets... Find the truth...
Status | In development |
Author | Temporal Clockwork |
Genre | Role Playing |
Tags | 2D, choice, consequence, Nonlinear, Pixel Art, redo, Singleplayer, time, Time Travel |
Languages | English |
Accessibility | Subtitles |
More posts
- Routine CheckNov 25, 2020
- Working On SchedulesNov 09, 2020
- Night SkyOct 20, 2020
- The Shrubs Are AliveOct 17, 2020
- Node EditorOct 16, 2020
- In The CloudsOct 11, 2020
- Rock WorkOct 08, 2020
- The Big Wide WorldOct 06, 2020
Leave a comment
Log in with itch.io to leave a comment.