Permalink
Browse files

make it work in firefox

  • Loading branch information...
1 parent 78c2ec8 commit 7be6eb7d3b39cf684612a0b4e974de0e6adac67a @clkao clkao committed May 7, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 public/js/xdfighter.js
View
8 public/js/xdfighter.js
@@ -212,7 +212,7 @@ $(function(){
//hit?
if( cvsLeft + cvsF.animations[cvsF.currentState].width - 2 > aboboLeft ){
- console.log( 'role overlay' );
+// console.log( 'role overlay' );
if((cvsF.currentState == KICK || cvsF.currentState == PUNCH) && aboboF.currentState != BEATEN){
@@ -226,7 +226,7 @@ $(function(){
changeAnimation(abobo, aboboF.animations, BEATEN, aboboF.currentState);
aboboF.currentState = BEATEN;
- console.log( 'abobo is beaten.' );
+// console.log( 'abobo is beaten.' );
if ( cvsF.currentState == KICK ) {
abobo.reduceLife( 10 );
@@ -246,7 +246,7 @@ $(function(){
}
}
else if ((aboboF.currentState == KICK || aboboF.currentState == PUNCH) && cvsF.currentState != BEATEN) {
- console.log( 'cvs is beaten.' );
+// console.log( 'cvs is beaten.' );
changeAnimation(cvs, cvsF.animations, BEATEN, cvsF.currentState);
cvsF.currentState = BEATEN;
@@ -331,7 +331,7 @@ $(function(){
function fire_tomato() {
var cvsLeft = cvs.position().left;
if ($('#po').length)
- break;
+ return;
$("#fighters").addSprite(
"po",
{

0 comments on commit 7be6eb7

Please sign in to comment.