This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-22
Channels
- # announcements (9)
- # asami (52)
- # aws (1)
- # babashka (7)
- # babashka-sci-dev (12)
- # beginners (72)
- # calva (24)
- # cider (9)
- # clj-kondo (76)
- # cljs-dev (15)
- # clojure (19)
- # clojure-australia (4)
- # clojure-europe (33)
- # clojure-france (9)
- # clojure-gamedev (17)
- # clojure-nl (6)
- # clojure-portugal (5)
- # clojure-uk (5)
- # clojurescript (61)
- # clojureverse-ops (4)
- # code-reviews (23)
- # conjure (1)
- # data-science (2)
- # datalevin (6)
- # datomic (49)
- # gratitude (1)
- # helix (24)
- # holy-lambda (14)
- # jobs (3)
- # lsp (92)
- # malli (7)
- # missionary (8)
- # pathom (12)
- # proletarian (3)
- # re-frame (4)
- # remote-jobs (1)
- # shadow-cljs (4)
- # spacemacs (3)
- # sql (9)
- # tools-build (90)
- # vim (1)
- # xtdb (11)
Hello! What are the reasonable options these days for a UI for basic tile-based 2d / Roguelike type game, either JVM or browser based? play-cljc seems like the simplest option, but some (quite old) resources use Laterna or Quil. Are there any good options that I'm missing? My priority is definitely simplicity over feature richness. The ability to display a small grid of tiles and handle keyboard and mouse inputs is mostly what I need. Thanks, and apologies for what I imagine is a common question
i cannot recommend ROT.js highly enough. it is perfect for making roguelike games in the browser. i gave a talk about this at roguelike celebration let me know if you want the link.
it's all JS but i know from previous experience you can wrap it in cljs no problems.
It looks really interesting, thanks. Do you have an example CLJS repo I can look at to get myself off the ground?
I only have really old code. My next roguelike will be made with rot.js but so far I've only used JavaScript sorry!
I found this very old codebase that has some ROT.js integration but it's not great. https://github.com/chr15m/hexatron
here's a another more recent one. for some reason i decided to run all the heavy calls in a web worker. https://github.com/chr15m/emorogue
There’s also [Zircon](https://github.com/Hexworks/zircon). A kotlin library for making tile-based UIs, which you can wrap with clojure.
quil is a really good option if you just wanna draw some graphics fast and don't have too demanding a game.
I can't say anything about the browser-based ecosystem, but on JVM Clojure there isn't a whole lot in the library space for working with gamedev stuff, especially drawing to a UI onto like an OpenGL canvas or anything.
There are some good Java libraries for this, like LibGDX, which you can use from Clojure, but it will take some getting used to the Java-style API.
Thanks @suskeyhose ! I’ll go with Quil
no problem!
Quil is nice! it can be used for both, JVM and browser. For browser based, you could have a look at minicosm, too: https://github.com/jarcane/minicosm
Not the original person asking, but whoa, didn't know of minicosm, thanks for dropping that link!
i cannot recommend ROT.js highly enough. it is perfect for making roguelike games in the browser. i gave a talk about this at roguelike celebration let me know if you want the link.