Run
every
ms
35
For a deque we just combine the two approaches
36
I have made a second graph showing off bitwise operators and won’t bother copying them here https://www.desmos.com/calculator/sqx1vsqagd
37
Sadly I wasn’t able to get it to work with binimals
38
Now let’s get to the actual coding interface
39
Sadly all actions run simultaneously so we'll have to run actions independently
40
Sike here is some trickery (Run the ticker)
41
42
43
44
45
46
47
48
Since we cant delay multiple actions in the same tick, we put them in seperate ticks, and use an action to choose which one should be run.
49
This way we can run all of them at once every tick, and only the ones "approved" will run
50
With some tirkcery we can also make fors and whiles
51
52
53
54
55
56
57
Begin for
58
59
60
61
62
End for
63
This calculates 2^5 via repetitive multiplication
64
The for is actually more complicated then you would think. Since all actions are processed at the same time, updating a variable to 2 seperate values is a no-no, and so the ticker will stop running. We need to get around this by telling the Stepinto action to never run at the end of the for, and having a special function that takes us out of the for when the conditions are right.
65
A while is identical, the same way they are interchangeable in actual code.
66
And that's pretty much it. I think recursive functions might not be possible, which is sad, but oh well. Knowing you guys you will probably find something over the top and ridiculos that allows for this.
67
In the meantime, someone make Doom in Desmos
68
69
70
71
driven av
driven av
Skapa en ny graf
Exempel