Skip to content

Commit

Permalink
Trying to fix multiplier bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vjsingh committed Apr 5, 2011
1 parent 3c1f3bd commit b444ae3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multiplier.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var multiplier = function(p, spec) {
spec.width = spec.width || 5;
spec.height = spec.height || 5;
// make sure it goes left
spec.vel = new p.PVector(p.random(0, -1), p.random()) * g_speed_factor;
spec.vel = new p.PVector(p.random(0, -1)* g_speed_factor, p.random()* g_speed_factor);

// obj to return
var obj = game_object(p, spec);
Expand Down

0 comments on commit b444ae3

Please sign in to comment.