News for hackers. Stuff that matters.

resatori

Re:Gamedev in Lisp. Part 2: Dungeons and Interfaces on Friday October 18, 2024 @06:28AM (#41878002)
Hey, you should checkout https://github.com/rednblackgames/HyperLap2D then.
Re:Core: New way to develop video games on Tuesday September 10, 2024 @05:17AM (#41498852)
Core is both an engine, a new paradigm and an action RPG in development. Just clone the repo and start with `lein dev` (clojure build tool).
Re:Core: New way to develop video games on Sunday September 08, 2024 @08:03PM (#41484334)
Oh I already commented on your video.

What you mean 4D? I had already an replay mode working and was thinking of implementing time travel, but at the moment that code is dead.

3D sounds interesting but so far haven't done much 3D programming and I'm also broke.

I would explore more but have released the library as I may not have the funds to continue.

Let's see!

Re:Core: New way to develop video games on Sunday September 08, 2024 @05:57PM (#41483577)
https://github.com/xpenatan/gdx-teavm

This is a libgdx backend for web. Should be possible to use with clojure but haven't tried. This is actually the most interesting next step for the engine I think - would let anyone try the game from the browser!

Even if it's would be hard on performance o think it would be worth it - I would just make the game turn based then

Re:Core: New way to develop video games on Sunday September 08, 2024 @05:52PM (#41483546)
Thanks, it is from a time when I read too many osho books and started a blog...
Re:Core: New way to develop video games on Sunday September 08, 2024 @05:52PM (#41483542)
The result of the experiment is that no, it's not simple.
Re:Core: New way to develop video games on Sunday September 08, 2024 @05:50PM (#41483530)
To be honest I think this project actually failed. It is an overengineered mess and lacks any kind of clear structure.

The main problem is total lack of specification - because I didn't come up with a story for the game or I think games maybe don't need stories. So I just coded like a maniac because it's just fun to code in clojure

Re:Core: New way to develop video games on Sunday September 08, 2024 @04:50PM (#41483087)
A clojure vector is an inbuilt data structure of the language and looks like this: [1 2 3]

I am using them to construct side effects which I call 'transactions' (similar to datomic) [:tx/foo 3] where :tx/foo is a keyword and uniquely identifies the component behaviour.

Re:Core: New way to develop video games on Sunday September 08, 2024 @04:09PM (#41482804)
I don't understand your concern. Would you mind phrasing it differently?
Re:Core: New way to develop video games on Sunday September 08, 2024 @04:03PM (#41482758)
Check it out, it is handling hundreds of entities at >>60 FPS. And I still did not do much performance optimization (there are still many lazy seqs around and unoptimized code).

Also most of the sprite rendering is the main problem, which an atlas texture could also improve even more. (Right now all creature animations are separate texture files).

And you can always step down a level to java if the need arises!

Re:Core: New way to develop video games on Sunday September 08, 2024 @04:01PM (#41482751)
I find it very natural to work with because clojure is based on the JVM so the project uses libgdx under the hood (deploys to all platforms, huge library) and I can use lisp for everything else to do basically anything.

Combined with clojures way of handling immutable datastructures so well & the excellent protocol system (https://www.freshcodeit.com/blog/clojure-protocols-and-the-e...) I could separate the whole game easily into separate components.

Re:Core: New way to develop video games on Sunday September 08, 2024 @03:49PM (#41482667)
But I don't know exactly what this thing is. I have coded like crazy on it and created a new component system & datomic-like transaction-data like effect system, so it is more than just an RPG maker. Its a whole new way to write games.

For example side effects are just vectors of `[:tx/foo param]`.

Re:Core: New way to develop video games on Sunday September 08, 2024 @03:43PM (#41482632)
I am actually also open for names, I don't know exactly what this thing is.
Re:Core: New way to develop video games on Sunday September 08, 2024 @03:41PM (#41482608)
Do I have to change the name ? Given it's just an open source project and the name is actually just 'core' . It's an rpg maker tool and functional engine.
Upvoted because it's really easy to get lost when developing a game & engine.

I am trying this approach right now with the functional clojure 2d engine 'gdl'https://github.com/damn/gdl , which just 'organically' evolved out of developing https://github.com/damn/Cyber-Dungeon-Quest , an action RPG.

Which means that all features have been created by an actual need.

Older »