Permalink
Browse files

renamed physics.js to game.js

  • Loading branch information...
1 parent ab0b72c commit 9f3ca2c7ffe79fd6193f9b193c544d75e27ec28b @Pomax Pomax committed Nov 10, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 examples/arkanoid.html
  2. +1 −1 examples/pong.html
  3. +1 −1 js/{physics.js → game.js}
View
@@ -379,7 +379,7 @@
==================== --›
‹script src="../js/Box2dWeb-2.1.a.3.js"›‹/script›
-‹script src="../js/physics.js"›‹/script›
+‹script src="../js/game.js"›‹/script›
</script>
View
@@ -249,7 +249,7 @@
==================== --›
‹script src="../js/Box2dWeb-2.1.a.3.js"›‹/script›
-‹script src="../js/physics.js"›‹/script›
+‹script src="../js/game.js"›‹/script›
</script>
@@ -542,7 +542,7 @@ function fromBox2DValue(v) { return BOX2D_PIXELS_PER_METER*v; }
fixDef.density = element.getAttribute("data-density") || 0;
fixDef.friction = element.getAttribute("data-friction") || 0;
- fixDef.restitution = element.getAttribute("data-elasticity") || element.getAttribute("data-bounciness") || 1;
+ fixDef.restitution = element.getAttribute("data-bounciness") || 1;
bodyDef.position.x = toBox2DValue(bbox.left - pbbox.left + bbox.width/2);
bodyDef.position.y = toBox2DValue(bbox.top - pbbox.top + bbox.height/2);

0 comments on commit 9f3ca2c

Please sign in to comment.