Skip to content

Instantly share code, notes, and snippets.

View wwqrd's full-sized avatar

Stephen wwqrd

  • United Kingdom
  • 16:27 (UTC +01:00)
View GitHub Profile
@wwqrd
wwqrd / hud.js
Created May 3, 2012 17:41
Simple debug hud
var hud = function(msg, length) {
var length = length || 2;
window.hudBuffer = window.hudBuffer || [];
window.hudBuffer.push(msg);
if(window.hudBuffer.length > length) {
window.hudBuffer.shift();
}
hudString = "";