Permalink
Browse files

Minor fixes: Dash now uses the higher hardcoded max speed and player …

…no longer disables turbo boosting permenantly on a wrong answer.
  • Loading branch information...
1 parent cb669c3 commit a63c3f761faa3fc4bbc3a29db2d996fbdfe8fbb0 John Conomikes committed Sep 13, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/html5/src/Dashboard.js
  2. +1 −1 src/html5/src/Player.js
@@ -158,7 +158,7 @@ var Dashboard = cocos.nodes.Node.extend({
context.closePath();
context.stroke();
- var m = this.pHelper(100);
+ var m = this.pHelper(200);
context.fillStyle = 'rgba(0,0,0,0.4)';
this.fillArc(context, 50, 300, r, Math.PI, -1 * Math.PI * (1 - m), true);
View
@@ -96,7 +96,7 @@ var Player = PNode.extend({
// Starts a turbo boost if not already boosting
startTurboBoost: function() {
- if(!this.get('turbo') && !this.get('wipeoutDuration') > 0) {
+ if(!this.get('turbo') && !(this.get('wipeoutDuration') > 0)) {
this.set('turbo', true);
this.set('preTurbo', this.get('zVelocity'))
this.speedChange(this.get('turboSpeed') - this.get('zVelocity'), 0.1);

0 comments on commit a63c3f7

Please sign in to comment.