Skip to content

Instantly share code, notes, and snippets.

View sksmatt's full-sized avatar

Matt sksmatt

View GitHub Profile
@sksmatt
sksmatt / pong.coffee
Created March 8, 2012 21:42 — forked from betawaffle/pong.coffee
Text-based Pong Game
util = require 'util'
after = (time, args..., callback) -> setTimeout callback, time, args...
class Game
score: 0
score_step: 20
constructor: (@client, @difficulty = 800) ->
@send 'HELO :Welcome to Pong!'
@send 'HELP :When you receive a PING <code>,'
@send 'HELP :reply quickly with PONG <code>,'
<!DOCTYPE html>
<!-- Helpful things to keep in your <head/>
// Brian Blakely, 360i
// http://twitter.com/brianblakely/
-->
<head>
<!-- Disable automatic DNS prefetching.