ClojureScript Browser Multiplayer Engine

This page summarizes the projects mentioned and recommended in the original post on /r/Clojure

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • sente

    Realtime web comms library for Clojure/Script

  • I think the easiest way to do frontend games is with websockets. It's annoying to have to poll and makes a lot more sense for the backend to push data to the frontend. Sente https://github.com/ptaoussanis/sente is like socket.io in that it provides a nice wrapper for an event-driven architecture on top of websockets that is really well suited for games. It's what I used in coding up a multiplayer Go game.

  • racing-game-cljs

    A 3D racing game built with ClojureScript, React and ThreeJS

  • Then of course there is the vast library of JS game stuff - the most straightforward of which might just be following along with https://github.com/ertugrulcetin/racing-game-cljs which utilizes Three.js

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • Socket.io

    Realtime application framework (Node.JS server)

  • I think the easiest way to do frontend games is with websockets. It's annoying to have to poll and makes a lot more sense for the backend to push data to the frontend. Sente https://github.com/ptaoussanis/sente is like socket.io in that it provides a nice wrapper for an event-driven architecture on top of websockets that is really well suited for games. It's what I used in coding up a multiplayer Go game.

  • Phaser

    Discontinued Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering. [Moved to: https://github.com/phaserjs/phaser] (by photonstorm)

  • As far as the game engine goes, I’d just use JS interop with a library like phaser! There’s a cljs wrapper out there for it, but the README doesn’t build confidence lol. There are tons of examples on the phaser site, including ones for games that involve multiplayer. It may be a good place to start.

  • play-clj

    Discontinued A Clojure game library

  • I tried phaser recently. It is quite complete framework, so there is no need to reach for some specific purpose libraries. I went through https://phaser.io/tutorials/making-your-first-phaser-3-game but with shadow-cljs and it worked. The framework handles well low level stuff so the final source code is small. I have expanded the game from tutorial with sounds, custom graphics and it reached something like 150 lines of clojurescript code. However I wouldn't recommend it to someone who is just learning clojure. https://github.com/oakes/play-clj was really nice (and it was simple to build android app from it) but it's no longer maintained and I never used it's successor (https://github.com/oakes/play-cljc) which might be better option today.

  • play-cljc

    A Clojure and ClojureScript game library

  • I tried phaser recently. It is quite complete framework, so there is no need to reach for some specific purpose libraries. I went through https://phaser.io/tutorials/making-your-first-phaser-3-game but with shadow-cljs and it worked. The framework handles well low level stuff so the final source code is small. I have expanded the game from tutorial with sounds, custom graphics and it reached something like 150 lines of clojurescript code. However I wouldn't recommend it to someone who is just learning clojure. https://github.com/oakes/play-clj was really nice (and it was simple to build android app from it) but it's no longer maintained and I never used it's successor (https://github.com/oakes/play-cljc) which might be better option today.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Mmorpg Game in ClojureScript

    1 project | news.ycombinator.com | 7 Aug 2023
  • Enion Online – 3D PvP multiplayer game written in Clojure and ClojureScript

    1 project | news.ycombinator.com | 26 Jul 2023
  • Anybody working on games here?

    13 projects | /r/Clojure | 22 Mar 2023
  • 3D multiplayer game prototype written in Clojure and ClojureScript

    1 project | news.ycombinator.com | 5 Mar 2023
  • Herfi is now open source – 3D multiplayer game prototype written in Clojure

    1 project | news.ycombinator.com | 19 Apr 2022