Permalink
Browse files

changed bounce to highlight

  • Loading branch information...
BlackScorp committed Mar 20, 2012
1 parent e61f0e0 commit 2fd5724051299025cfb7af495ddd160a318b2bc5
Showing with 2 additions and 6 deletions.
  1. +1 −1 assets/js/levels.js
  2. +1 −5 assets/js/player.js
View
@@ -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({
View
@@ -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;
});
}

0 comments on commit 2fd5724

Please sign in to comment.