Skip to content

etaque/tacks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Emilien Taque
Jan 3, 2017
37a69d9 · Jan 3, 2017
Dec 30, 2016
Jan 3, 2017
Oct 9, 2016
Apr 17, 2016
Dec 17, 2016
Jan 15, 2015
Apr 27, 2016
Feb 27, 2016
Feb 27, 2016
Apr 27, 2016
Aug 22, 2014
Feb 28, 2016
Oct 14, 2016
Aug 22, 2014
Aug 22, 2014
Nov 20, 2016
Dec 19, 2016
Nov 26, 2016
Nov 26, 2016

Repository files navigation

A sailing race simulator, multiplayer & real-time, in you browser.

Server app is powered by Scala 2.11 with Play 2.3, Slick 3, Akka for websockets orchestrations and uses PostgreSQL for database. No classes except actors, code is written in a functional style.

Game client is an Elm app, an statically-typed functional language that compiles to Javascript.

Architecture

Server area:

  • Players sync
  • Race management

Done withing Akka actors, communicating with the client through Websockets and JSON API. No rendering from the server.

Client area:

  • Single Page App
  • Game rendering (SVG)
  • Game logic (input handling, player moves, etc)

How to install

Server (Play app):

Client (Elm app with JS boot and SASS stylesheets):

  • cd client
  • npm install
  • npm start