Mercurial > hg > Members > e085737 > sample
view gloopon/resources/bullet.js @ 21:87850fc55445
save
author | <e085737> |
---|---|
date | Sun, 16 Jan 2011 00:57:53 +0900 |
parents | |
children | 470ac6e71d50 |
line wrap: on
line source
bullet_move = function(node, sgroot, w, h){ this.xyz[0] += this.dx; this.xyz[1] += this.dy; //+ Math.sin(this.frame) * 500 this.xyz[2] += this.dz; this.frame++; if(this.frame > 200){ this.remove(this); } } bullet_collision = function(node, sgroot, w, h){ if(this.xyz[1] > 100){ this.remove(this); } }