Browse files

Bug fixes thanks to DATrader

Signed-off-by: Seb Lee-Delisle <sebleedelisle@gmail.com>
  • Loading branch information...
1 parent 072625b commit 92e0d77170953353edd091b8d19aa74adc7c37ef @sebleedelisle committed Sep 16, 2011
Showing with 4 additions and 2 deletions.
  1. +1 −1 BurstGame/Burst.html
  2. +3 −1 BurstGame/js/Particles.js
View
2 BurstGame/Burst.html
@@ -10,7 +10,7 @@
margin: 0px;
overflow: hidden;
width : 100%;
- // need this otherwise container will hijack all clicks/touches!
+
-webkit-transform: translateZ(-1000px);
-webkit-transform-style: preserve-3d;
View
4 BurstGame/js/Particles.js
@@ -19,6 +19,8 @@ function Emitter(domContainer){
this.removeParticle = function(particle) {
particle.domElement.style.visibility = "hidden";
+ particle.enabled = false;
+ spareParticles.push(particle);
};
this.makeExplosion = function(xpos, ypos, zpos){
@@ -38,7 +40,7 @@ function Emitter(domContainer){
particle.yVel *= 40/speed;
particle.zVel *= 40/speed;
- particle.scale = 4;
+ particle.size = 1.5;
particle.update();

0 comments on commit 92e0d77

Please sign in to comment.