I'm currently working on a multi player game, when I have time. The backend 
in Clojure, the frontend in Javascript (as in a HTML browser based UI). So 
far it has been a really fun project and a great learning experience.

All communication is over web sockets (using http-kit). I send events 
(which have a type key) as JSON between clients and server. I use `case` to 
run a event handler function based on the type key of the event. I intend 
to change this to use a multimethod instead.

I'm storing state in atoms (but I'm going to switch to agents as they are 
async).

The first game is "tag", any number of players can join a game and one is 
"it", they need to "tag" someone else and they become "it".

The UI is using HTML div and CSS absolute positioning to move the players. 
The idea being I will switch to using canvas once working and then 
something like phaser.js. The idea being switching rendering from DOM to 
Canvas should only require adding new JS functions.

As you can see I'm starting with the simplest possible game.


On Monday, 16 April 2018 13:00:21 UTC+1, Peter Ashford wrote:
>
> Hi There - Clojure noob here. I wanted to ask some question about games 
> programming in Clojure.  Is it ok to ask here or is there a better spot?  
> Most of my questions aren't super game-specific.
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to