balthazarneveu / interactive_pipe

create interactive image processing pipeline with friendly sliders
The Unlicense
5 stars 1 forks source link

Time control - animations, videos etc... #15

Open balthazarneveu opened 1 year ago

balthazarneveu commented 1 year ago

Ideally, you'd write

@interactive(instant_t=ControlTime() )
filter(instant_t=0, go_up=False, go_down=False, go_left=False, go_right=False):
    game_engine(time=instant_t)

Which would trigger the loop ... so you can code a game without worrying about writing while & threads.

Although this seems like a "nice to have", keep in mind that it may imply some code design choices/blockers...