Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

Commit

Permalink
Fix lint errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Humphrey committed Sep 7, 2011
1 parent 2c673ad commit 8765eed
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/rescuefox.js
Expand Up @@ -9,6 +9,8 @@
var spawnObjs = 100;
var cameraOffset = [ 0, 2, 4 ];

function isNaN(n) { return n!=n; }

var generateObjects = function() {
var result = [];

Expand Down Expand Up @@ -85,16 +87,17 @@
result.push({mesh:asteroid4,collision:asteroid4Collision});

return result;
}
};


var spawnObjects = function (scene,physics,objlist) {

var nobjs = objlist.length-1;

var b = parseInt(window.location.search.substr(1),10);
if (b && !(b!=b)) spawnObjs = b;

var b = window.location.search.substr(1) | 0;
if (b && !isNaN(b)) {
spawnObjs = b;
}

for (var i = 0; i < spawnObjs; i++) {
var src = objlist[i%nobjs+1];
Expand Down Expand Up @@ -136,7 +139,7 @@
physics.bindRigidBody(rigidObj);

}
}
};

var setupPlayer = function (scene,physics,playerObj) {

Expand All @@ -163,7 +166,7 @@
// rigidObj.setAngularFactor(0);

return rigidObj;
}
};



Expand Down Expand Up @@ -208,7 +211,7 @@
shininess: 0.9,
env_amount: 1.0,
textures: {
color: new CubicVR.Texture("../assets/6583-diffuse.jpg"),
color: new CubicVR.Texture("../assets/6583-diffuse.jpg")
}
});

Expand All @@ -224,7 +227,7 @@
var floorObject = new CubicVR.SceneObject({
mesh: floorMesh,
scale: [100, 0.2, 100],
position: [0, -5, 0],
position: [0, -5, 0]
});

floorObject.shadowCast = false;
Expand Down

0 comments on commit 8765eed

Please sign in to comment.