Lurker News
Kandria, an open world action RPG platformer written in Common Lisp is now out and available!

A prior discussion of Kandria can be found here: https://news.ycombinator.com/item?id=32043026.
I'm the lead developer and sole programmer for the project. Would be happy to answer any questions about it!

Comments (127) 41 threads

Earlier comments
TacticalCoder1 reply#
I was going to comment controls looked like the mega hit "Celeste" and then I found this comment on HN, from 6 months ago, by the dev of Kandria:

"I wanted to create something bigger, and had just finished playing through Celeste"
Ah that explains it! Congrats on shipping on Steam!

Shinmera#
Yeah, it started out with just Celeste mechanics before everything else happened.

Thanks!

agentultra2 replies#
This is dope as heck. I used to contribute to the common lisp SDL2 bindings. Great to see a polished game on Steam written in Common Lisp!

Recently saw one in Haskell too. And there have been several in Javascript over the years.
Did you find you had to manually manage the GC? Did you take advantage of CLOS?

Shinmera2 replies#
I had to do a little bit to avoid insane amounts of consing, but honestly not a lot. And the optimisations I just did after the fact, gradually.

I use CLOS a lot for everything. The event system is literally just an array of handlers and a generic function called HANDLE that takes the event object and the handler object, for instance.
The source code for the engine, Trial, and the game, Kandria, are both on our GitHub under Shirakumo.

agentultra1 reply#
Nice! Thanks for sharing!

Update Bought a copy, definitely my jam. Played on the steam deck, noticed that the first time I used an action (move, jump, attack) there was a noticeable pause/stutter but has been smooth as butter afterwards.
PS: are you able to talk about the steam integration? I assume it's a C or C++ library of sorts and fairly straight-forward to extend; curious if you plan on releasing to another platform if it's possible to keep similar "achievments."
Also, kudos on the accessibility settings; changing damage and game speed, etc! Nice.

Shinmera#
Hmmm. I might have to take another look at optimisation for the deck, then.

Sure. I use the cl-steamworks library I wrote. https://shinmera.github.io/cl-steamworks/ Their API frankly sucks and getting the integration going was a big pain. However, if all you want is the minimum, like achievos, you can omit all of that and just do a couple C calls.
The engine has abstracted support for achievements and such integrations, so it is possible to integrate with other platforms, too, should we ever release on GOG or EGS.

int_19h1 reply#
I always wondered if CLOS multimethods would be particularly useful in gamedev - it feels like it would be most natural to model arbitrary and unpredictable interactions between many different entities. How common is multiple dispatch in practice in your codebase?
Shinmera#
Very common.
trenchgun1 reply#
What was the Haskell game if you dont mind me asking?
peebz1 reply#
This looks amazing! I'm guessing you may have answered these questions before somewhere so please point me to the information if so. I'd like to know what development environment you use (Emacs, SBCL and Slime?), what packages you used to create the graphics for the game, and what the game is compiled to. Thanks.
Shinmera2 replies#
I use Emacs, Slime, SBCL, yes. Since it uses SBCL, game code is compiled to native machine code for each supported platform and architecture.

You can find more info on the dev process here: https://reader.tymoon.eu/article/413 And the source code for the engine, Trial, and the game, Kandria, are both on our GitHub under Shirakumo.

peebz#
That's fascinating, thanks!
amalgamated_inc1 reply#
When you write a game for Steam or similar services, do you have to make a specific binary format or follow certain conventions? Or could you basically do anything, in any language, even if it ships with a VM? Could I write a game in Erlang, for example, as long as I have SDL bindings?
Shinmera#
All that steam requires is a native executable to launch, and that you load their steamworks library and initialise it, which should be one or two FFI calls.
vlunkr1 reply#
Looks awesome! It's relatively rare to see fully completed games open-sourced immediately. I'm curious what the thought process is there, and if you're concerned about people selling low-effort reskins or other exploitative things.
Shinmera3 replies#
My mind about this has always been in a couple directions, but none of them point towards not open sourcing things. So, for one, I very heavily doubt that anyone would take this source code in Lisp of all things and release a product that could actually damage my sales. And even if they did so history shows that there's very likely practically nothing I could do about it. I'd just have to be upset about it happening, with no real chance of repercussion.

It is far more important to me to show confidence in my vision and to let other people learn from what I've done. In my view a lot more games should be open source, because far too much of the process is hidden behind mysticism, with far too many people wasting a ton of time reinventing things from scratch.
And, well, finally, I'd ultimately like to make everything I do available for free, anyhow. The only reason I'm selling Kandria is because there is no UBI in this country and probably won't be for many years to come, so I have to fund things somehow.

pwillia7#
hear hear
westmeal1 reply#
You're a pretty rad dude
Shinmera#
Aw, thank you.
vlunkr1 reply#
Very cool. Coming from the web dev world, the gaming world seems very protective of everything about development. This makes sense coming from the AAA studios, but it sadly extends to many indie devs as well. Hopefully there will be more embracing of the open source model in the future.
Shinmera#
Yeah. Even around announcements and reveals there's a lot of scares going around. The industry has historically relied very heavily on a big launch hit, so the marketing around that had to be very carefully massaged, and release of information controlled as a consequence.

I'm personally sceptical that it's healthy to be this caged about things, but I don't have any numbers to back this up -- though I suspect nobody else does either, given how marketing is always just a crapshoot.

Load more comments