Skip to content

Commit

Permalink
Extra level + balance for effects.
Browse files Browse the repository at this point in the history
  • Loading branch information
Casmo committed Aug 21, 2015
1 parent ee37d4b commit 5ecead6
Show file tree
Hide file tree
Showing 6 changed files with 1,310 additions and 570 deletions.
5 changes: 3 additions & 2 deletions src/BreakOut.Paddle.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,12 @@ BreakOut.Paddle.prototype.shoot = function () {
};


// @todo move this to the effect and add target paddle
BreakOut.Paddle.prototype.applyEffect = function (effect) {

switch (effect) {
case 'freeze':
var timeout = 240; // in fps
var timeout = 320; // in fps
var effectObject = {
effect: 'freeze',
endTimer: BreakOut.timer + timeout,
Expand Down Expand Up @@ -132,7 +133,7 @@ BreakOut.Paddle.prototype.applyEffect = function (effect) {
this.effects.push(effectObject);
break;
case 'sticky':
var timeout = 720; // in fps
var timeout = 1200; // in fps
var effectObject = {
effect: 'sticky',
endTimer: BreakOut.timer + timeout,
Expand Down
3 changes: 2 additions & 1 deletion src/BreakOut.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ var BreakOut = {
levels: [
'level000.json',
'level001.json',
'level002.json'
'level002.json',
'level003.json'
],
/**
* List with batch operations to execute
Expand Down
Loading

0 comments on commit 5ecead6

Please sign in to comment.