Mercurial > hg > Game > WebGL
diff Walk/resources/bullet.js @ 0:718974a1a32b
Vacuum
author | <e085737> |
---|---|
date | Tue, 07 Dec 2010 17:31:15 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Walk/resources/bullet.js Tue Dec 07 17:31:15 2010 +0900 @@ -0,0 +1,9 @@ +bullet_move = function(node, sgroot, w, h){ + this.xyz[0] += this.dx + this.xyz[1] += this.dy + this.xyz[2] += this.dz + this.frame++ + if(this.frame > 400){ + this.remove(this) + } +}