Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Slight changes in plasma style.

  • Loading branch information...
commit f22862259cc107996ea662b9f9e91fdb30206a8f 1 parent 1f7fd84
@stephank authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/enemies/plasma.js
View
10 src/enemies/plasma.js
@@ -19,14 +19,14 @@ Plasma.prototype.update = function() {
};
Plasma.prototype.draw = function() {
- var angle = this.depth * 21 + 2 * Math.PI,
+ var angle = this.depth * 63,
i, dx, dy;
c.save();
grid.screenTranslation();
grid.laneTranslation(this.lane, this.depth)
- c.lineWidth = 0.01;
+ c.lineWidth = 0.02;
// FIXME
c.strokeStyle = 'white';
c.fillStyle = 'white';
@@ -35,10 +35,10 @@ Plasma.prototype.draw = function() {
c.moveTo(0, 0);
for (i = 0; i < 3; i++) {
angle += Math.PI * 2 / 3;
- dx = Math.cos(angle) / 5;
- dy = Math.sin(angle) / 5;
+ dx = Math.cos(angle) / 6;
+ dy = Math.sin(angle) / 6;
c.lineTo(dx, dy);
- c.fillRect(-(dx / 2), -(dy / 2), 0.02, 0.02);
+ c.fillRect(-(dx / 2), -(dy / 2), 0.03, 0.03);
}
c.stroke();
c.restore();
Please sign in to comment.
Something went wrong with that request. Please try again.