Skip to content

Commit

Permalink
Adjust friction values a little
Browse files Browse the repository at this point in the history
  • Loading branch information
codeincontext committed Feb 6, 2011
1 parent 335845b commit 14593af
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/ball.js
Expand Up @@ -5,7 +5,7 @@ function Ball (x, y) {
this.vy = 0;
this.move=move;
function move(){
friction = 0.995
friction = 0.99
this.vx *= friction;
this.vy *= friction;
if (this.vy < 0.1 && this.vy > -0.1 && this.vx < 0.1 && this.vx > -0.1) {this.vx = 0; this.vy = 0;}
Expand Down
2 changes: 1 addition & 1 deletion js/cue.js
Expand Up @@ -5,7 +5,7 @@ function Cue (x, y) {
this.vy = 0;
this.move=move;
function move(){
friction = 0.995
friction = 0.99
this.vx *= friction;
this.vy *= friction;
if (this.vy < 0.1 && this.vy > -0.1 && this.vx < 0.1 && this.vx > -0.1) {this.vx = 0; this.vy = 0;}
Expand Down
2 changes: 1 addition & 1 deletion js/game.js
Expand Up @@ -6,7 +6,7 @@ var my;
var offset = $('canvas').offset();
var shooting = false;
var maxCuePull = 125;
var cueSpeedMultiplier = 0.05;
var cueSpeedMultiplier = 0.08;

var width = 500;
var height = 500;
Expand Down

0 comments on commit 14593af

Please sign in to comment.