logoalt Hacker News

Razengantoday at 6:24 PM6 repliesview on HN

I've been wondering about this for some time, that how there really isn't a language that's made from the ground up just for coding gameplay logic.

Like we have SQL for databases, Julia etc for maths etc, but gamedevs still have to plod along in general-purpose languages with archaic conventions established 50 years ago by people who had nothing to do with games.

I'd love something with the syntax of GDScript and the features of Swift, with special constructs just for gameplay logic, which is often a hybrid between inheritance and composition, static and dynamic, declarative and imperative.

I've been toying with what would be the ideal syntax (for me), but I don't have the brains to actually make a language :')


Replies

zzo38computertoday at 8:01 PM

There are many that are specialized for different uses in games, such as:

- ZZT-OOP

- MegaZeux Robotic

- ZIL

- MESH:Hero

- Free Hero Mesh

- Super ZZ Zero

- OHRRPGCE HamsterSpeak

(There are probably a lot more that I had missed)

All of these are specific to the specific kind of games being made with them, though; different kind of games will require a different kind of logic.

MESH:Hero is specific to a specific kind of puzzle games, and Free Hero Mesh is a FOSS clone of MESH:Hero with a different syntax and more features.

meheleventyonetoday at 7:53 PM

PuzzleScript is the closest to this I can think of. Hyper specialised though.

https://www.puzzlescript.net/

Scramblejamstoday at 7:25 PM

Check out Jai, apparently if you ask nicely its author will let you use it. Unofficial docs here: https://pixeldroid.com/jailang/

Baloogatoday at 6:38 PM

There is OpenGOAL[1]. A re-implementation of the language that Naughty Dog used to created Jak and Daxter.

[1] https://opengoal.dev/

macintuxtoday at 6:33 PM

Well, if you’re interested in text-based games, there have been custom languages for a long time.

https://www.linusakesson.net/dialog/craverly/craverly_side_b...

Also LPC for muds, although that definitely wasn’t built from the ground up.

reactordevtoday at 6:30 PM

SQL is deterministic. Julia is deterministic. Gameplay is not deterministic. Constraints are arbitrary and there are no rules.

show 1 reply