Fork me on GitHub
#clojure-gamedev
<
2020-12-03
>
euccastro06:12:35

I happened to do something along those lines recently, in LWJGL: https://github.com/euccastro/esterqueira/blob/pong/src/esterqueira/logic.clj

euccastro06:12:36

code is not exactly pretty, but it avoids atoms or mutable state

euccastro06:12:29

re: the problem of complicated updates in a deep data structure (IIUC the question) I'd recommend giving specter a try https://github.com/redplanetlabs/specter

👍 3
euccastro06:12:08

this is the main loop that interfaces that logic with glfw/opengl: https://github.com/euccastro/esterqueira/blob/pong/src/esterqueira/gl.clj#L164