knuton / playdev

Ressources for developing games for Dividat Play and Senso

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Play[dev]

Dividat Play is a web-based framework for playing games with the Dividat Senso hardware. It is capable of loading and running "external" games (that is games that are not developed in the same codebase). This repository contains documentations and examples on how to develop games for usage with Dividat Play and Senso.

Overview

architecture

  • Play: Dividat Play is a web application that loads games according to personal training plans and manages hardware connectiviy.
  • Game: The game you are developing can be developed in any language or framework that can target the Web platform (e.g. Unity, Phaser, ClojureScript). The game connects to Play via a protocol called the External Game Interface (EGI).
  • Senso: Used as controller for the games. Play connects to the Dividat Senso and acts as a proxy between the hardware and your game.

EGI

EGI protocol sequence chart

The Game communicates to Play via a message based protocol. Play sends messages to your game and your game sends messages to Play.

To use the EGI a small JavaScript library must be loaded which is available at https://play.dividat.com/PlayEGI.js.

TODO: Text description of protocol and JavaScript library.

Under the hood

The game is loaded by Play in an iframe. EGI messages are sent with the Window.postMessage() method.

Development tool

A development tool that implements the EGI is available at https://play.dividat.com/playDev.html.

Examples

Examples are provided to illustrate developement of Games for Play:

  • hello-clojure: A simple ClojureScript app illustrating usage of EGI.

TODO: More examples.

About

Ressources for developing games for Dividat Play and Senso


Languages

Language:Makefile 100.0%