Skip to content

Commit

Permalink
changed bounce to highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackScorp committed Mar 20, 2012
1 parent e61f0e0 commit 2fd5724
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion assets/js/levels.js
Expand Up @@ -40,7 +40,7 @@ Crafty.scene("Loading",function(){
},
function(e) {
var src = e.src ||"";
if(src=="ambient.ogg") console.log("yep")

//update progress
text.text("Loading "+src.substr(src.lastIndexOf('/') + 1).toLowerCase()+" Loaded: "+~~e.percent+"%");
bar.progressbar({
Expand Down
6 changes: 1 addition & 5 deletions assets/js/player.js
Expand Up @@ -117,11 +117,7 @@ Crafty.c("Player",{
if(this.bounce == false) {
this.bounce = true;
var t = this;
stage.effect('bounce',{},100,function(){
$(this).css({
'left':'50%',
'marginLeft':'-300px'
});
stage.effect('highlight',{color:'#990000'},100,function(){
t.bounce = false;
});
}
Expand Down

0 comments on commit 2fd5724

Please sign in to comment.