added hackexeter comments
This commit is contained in:
parent
69726178c7
commit
826544b5ac
8 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
// HackExeter
|
||||
function getIndex(list,index) {
|
||||
if(index>-1) {
|
||||
return index%list.length;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// HackExeter
|
||||
//you can change these to sexier stuff
|
||||
function Block(lane, color, distFromHex, settled) {
|
||||
this.settled = (settled == undefined) ? 0 : 1;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!-- HackExeter -->
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
|
|
1
input.js
1
input.js
|
@ -1,3 +1,4 @@
|
|||
// HackExeter
|
||||
keypress.register_combo({
|
||||
keys: "left",
|
||||
on_keyup: function(){MainClock.rotate(1)},
|
||||
|
|
1
keypress.min.js
vendored
1
keypress.min.js
vendored
|
@ -1,3 +1,4 @@
|
|||
// HackExeter
|
||||
/*
|
||||
Keypress version 1.0.8 (c) 2013 David Mauro.
|
||||
Licensed under the Apache License, Version 2.0
|
||||
|
|
1
main.js
1
main.js
|
@ -1,3 +1,4 @@
|
|||
// HackExeter
|
||||
var canvas = document.getElementById('canvas');
|
||||
var ctx = canvas.getContext('2d');
|
||||
|
||||
|
|
1
math.js
1
math.js
|
@ -1,3 +1,4 @@
|
|||
// HackExeter
|
||||
function rotatePoint(x, y, theta) {
|
||||
var thetaRad = theta * (Math.PI / 180);
|
||||
var rotX = Math.cos(thetaRad) * x - Math.sin(thetaRad) * y;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// HackExeter
|
||||
var app = require('http').createServer(handler),
|
||||
fs = require('fs');
|
||||
|
||||
|
|
Loading…
Reference in a new issue