📜 ⬆️ ⬇️

Demonstration of the operation of Realaxy Editor Events Flow Language



In the next beta of the Realaxy Editor, a special language will appear that was created to create state machines. You can describe the "trajectory" of the application.
By creating a special method with flow annotation, the code will “stop” and wait for an event or a group of events. This screencast demonstrates event subscription through a catch construct in an “infinite” loop. The second example describes a composite keyboard and mouse press event, using the and and not constructs.
The same language has possibilities for the declaration of special state labels and conditional jumps - jump . There is a mechanism for linking different flow methods through the chain construct (wait for the result of another flow). The language is very useful for creating event maps in games and interfaces.
What is now described by a bunch of logically unrelated event handlers can now be put into one method, and you can turn on and off subscription to events just by logging in or out of the execution point.

The code of the game "who wants to be a millionaire" on Events Flow:

image

')

Source: https://habr.com/ru/post/128725/


All Articles