4 ms·
Ask HN: Best language/framework to develop web-based text games today?
If you were to develop a new web-based text game today (e.g. A Dark Room, Universal Paperclips), what language / framework would you use? RoR, JS, Typescript, etc?
- toppy 4y agoTry Twine https://twinery.org/ https://twinery.org/ or Inform7 http://inform7.com/ http://inform7.com/
- AlbertMoral2018 4y agoJavascript or Typescript. They are universally available and great languages to learn
- joshxyz 4y agoyknow typical startup answer: the one you are comftable writing code in where you can iterate fast and ship to users fast
- ramchip 4y agoIf it's single-player, JS, so that it runs in the browser without having to constantly talk to the server. If it's multi-player, perhaps Phoenix LiveView, to avoid writing JS!
- segphault 4y agoYou might want to check out Kni, a JavaScript-based interactive story language for text adventures and interactive fiction: https://github.com/borkshop/kni https://github.com/borkshop/kni
- vandyswa 4y agoWhy do you assume you need a framework? JS in the ES6 world is a perfectly adequate language, and the obvious RESTful API back into the server can be coded directly. Hand code your HTML and CSS, and if you don't know how--learn. On the server side, I use Python CGI's for very lightly used API's, a Python microserver for moderate, and Golang for high performance.
- IceMetalPunk 4y agoHonestly, though, if you're recommending JS on the frontend, then I'd say Node for the backend allows for an easier time since there's no language-switching required.
- kryptiskt 4y agoI like Inkle's Ink https://www.inklestudios.com/ink/ https://www.inklestudios.com/ink/, which can compile to Javascript (though Inkle uses it with Unity and do quite graphics-heavy games, albeit text-driven).
- memalign 4y agoI’ve written a few of my own in plain JavaScript and it’s been a lot of fun. Dungeon Memalign: https://memalign.github.io/m/dungeon/index.html https://memalign.github.io/m/dungeon/index.html Source: https://github.com/memalign/memalign.github.io/tree/master/m/dungeon https://github.com/memalign/memalign.github.io/tree/master/m... Writeup: https://memalign.github.io/p/dungeon-memalign.html https://memalign.github.io/p/dungeon-memalign.html Counterfeit Monkey (demo): https://memalign.github.io/m/counterfeitmonkey/index.html https://memalign.github.io/m/counterfeitmonkey/index.html Source: https://github.com/memalign/memalign.github.io/tree/master/m/counterfeitmonkey https://github.com/memalign/memalign.github.io/tree/master/m... Writeup: https://memalign.github.io/p/counterfeit-monkey.html https://memalign.github.io/p/counterfeit-monkey.html
- matrixcubed 4y agoGodot, for a few reasons: - It out-of-the-box exports for web; - Its GDScript has a low barrier to entry; - Its UI is very well implemented and simple to learn; - Should you decide to build your game for other platforms (Win/Lin/Mac, you can; - If you have a budding interest in game development, you’ve already started with a good engine choice, and can pivot to adding graphics/sound, animation, 3D, multiplayer, etc afterward. Edit: formatting
- savanaly 4y agoI really like Elm [0] and write all my side projects in it. There are many reasons I like it, but the one that probably plays best around here is that it feels like a very learn-it-for-life type language. It has a release cadence measured in years (the latest version, 0.19.10, was released in October 2019!), and a community that has adapted to match. Elm doesn't release shiny new features often, or even necessarily ever again, but it has everything I need to make every web game I could possibly think of already so that's a good thing. [0] https://elm-lang.org/ https://elm-lang.org/
- IceMetalPunk 4y agoFor something as simple as a text game, and with web-based as a requirement, plain JS/TS is more than adequate. (Honestly, for something this simple, vanilla JS would be enough, but I see no reason to ever use JS without TS if you can help it.)