Electric Field Hockey

Description

Electric Field Hockey is a HTML5 Canvas game I wrote as an exercise in creating javascript canvas applications. After writing the client side javascript game, I rolled out a Ruby on Rails application to serve different levels of the game and store statistics and replays.

The use of KineticJS as a abstraction over the canvas API greatly reduced development time by letting me focus on the physics and gameplay elements. I didn’t have to write pages of code to get drag and drop support on desktop and mobile.

Core takeaways include not tying your physics simulation to fragile things like framerate and favoring side-affect free functions as much as possible.

Technologies

Client

Server

  • Ruby on Rails
  • MySQL
  • Custom deployment from a git hook

Relevant Links

Related Posts