Permalink
Browse files

Please jslint.

  • Loading branch information...
1 parent 972dd21 commit cb8c908591e8c73cd23508d177c9803325b7d12b @stephank committed Jul 3, 2010
Showing with 5 additions and 4 deletions.
  1. +1 −1 src/enemies/pulsar.js
  2. +3 −2 src/grid.js
  3. +1 −1 util/lint.head.js
View
@@ -8,7 +8,7 @@ var Pulsar = function(lane) {
Pulsar.prototype.update = function() {
// FIXME: Speed should be a level variable.
this.depth -= 2;
- if (this.depth < 0) { this.depth = 0 };
+ if (this.depth < 0) { this.depth = 0; }
// FIXME: Flip and pulse.
};
View
@@ -35,7 +35,8 @@ var Grid = function(info) {
// Iterate around the grid.
angle += this.angles[i];
// Normalize the angle.
- while (angle < 0) angle += 360; angle %= 360;
+ while (angle < 0) { angle += 360; }
+ angle %= 360;
// Calculate the coordinates.
radians = angle * C.radPerDeg;
x += Math.cos(radians); y -= Math.sin(radians);
@@ -59,7 +60,7 @@ var Grid = function(info) {
// Calculate the absolute angles of the CCW adjacent vertices.
for (i = 0; i < adjacents.length; i++) {
- var previous = (i != 0) ? i - 1 : adjacents.length - 1;
+ var previous = (i !== 0) ? i - 1 : adjacents.length - 1;
adjacents[i][1] = (180 + adjacents[previous][0]) % 360;
}
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

1 comment on commit cb8c908

This is a cool project...why no progress for six years? I'd be interested in helping you finish it but I think most game play is yet to be implemented, correct?

Please sign in to comment.