clojure-gamedev 2023-08-03

https://github.com/damn/Cyber-Dungeon-Quest

โš”๏ธ 4
๐Ÿ›ก๏ธ 1
๐ŸŽ‰ 4

Looks neat! Fyi: it's possible to remove the -XstartOnFirstThread arg if you don't mind including a c ffi library like JNA.

Can you explain this more please, what is c fffi?

As far as I know lwjgl3 and glfw don't work otherwise

ffi means foreign function interface. c is the c ABI. You still need to run the UI on the main thread, but you can set that up using c ffi.

Ahh, it would also be possible if I would package the game as an executable, I know about that

Iโ€™ve done it a few times. If youโ€™re interested, I could probably pull that code out into a small standalone library.

But right now it's not a priority

It's not an issue , I just added a line to .zshrc

๐Ÿ‘ 1

It just makes it easier to use for clojure projects.

There's a tool called jpacker or something from libgdx which packs games into a executable with jvm so don't spend your time on this

๐Ÿ‘ 1