Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Architecture

eglinetwork edited this page Oct 10, 2012 · 3 revisions

Clientside Componentes

Index (Website)

This module will represent the website and all the stuff needed outside the game itself

Game

This module will take inputs from interaction devices, send and receive them from/to the server and hook events, renderer and simulation together. The game loop will be controlled here.

Pitch

Public variables:

  • colorLines
  • colorTurf
  • colorTurfContrast
  • pitchWidth
  • pitchHeight
  • pitchOffsetX
  • pitchOffsetY
  • linesWidth
  • ballSize

Renderer

renders the state of the game in time t into a canvas

Simulation

Calculates the state of t+1 based on t and the new input parameters

Serverside Components

Event Tunnel

Just pass the signals of player A directly to player B

Persistant Storage

Not important right now

Clone this wiki locally