clojure-gamedev

2023-08-03T17:20:36.177329Z

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

โš”๏ธ 4
๐Ÿ›ก๏ธ 1
๐ŸŽ‰ 4
phronmophobic 2023-08-03T17:25:37.344049Z

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

2023-08-03T17:26:41.654859Z

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

2023-08-03T17:26:57.902999Z

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

phronmophobic 2023-08-03T17:30:04.985979Z

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.

2023-08-03T17:30:53.063839Z

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

phronmophobic 2023-08-03T17:31:01.847869Z

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

2023-08-03T17:31:06.205829Z

But right now it's not a priority

2023-08-03T17:31:33.327049Z

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

๐Ÿ‘ 1
phronmophobic 2023-08-03T17:31:33.518649Z

It just makes it easier to use for clojure projects.

2023-08-03T17:46:06.319079Z

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