Skip to content

Instantly share code, notes, and snippets.

View jpbyrne's full-sized avatar

Jon Byrne jpbyrne

  • Dublin, Ireland
View GitHub Profile
@jpbyrne
jpbyrne / ball.js
Created October 25, 2012 21:44
A simple Breakout clone created using JavaScript
function Ball(x, y, radius, color) {
this.x = x;
this.y = y;
this.dx = 10;
this.dy = 10;
this.dxRange = this.dx * 2;
this.radius = radius;