3 ms·
Just to pitch in with a Clojurescript/Quill example, where the game loop takes a function that takes game state, modifies it, and returns it for the next iterat
by opyate 3y ago
Just to pitch in with a Clojurescript/Quill example, where the game loop takes a function that takes game state, modifies it, and returns it for the next iteration of the game loop.
https://github.com/opyate/minild72/blob/master/src/pong/core.cljs#L59 https://github.com/opyate/minild72/blob/master/src/pong/core...