Changeset 105 for pycodeshooter
- Timestamp:
- 01/23/11 02:09:20 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pycodeshooter/trunk/shooter/bullet.js
r101 r105 129 129 130 130 that.next = function() { 131 this.x += Math.cos(this.dir) * this.i * this.getSign();131 this.x += Math.cos(this.dir) * this.i; 132 132 this.y += Math.sin(this.dir) * this.i; 133 this.dir += (this.delta / this.i) ;133 this.dir += (this.delta / this.i) * this.getSign(); 134 134 this.i += (this.delta / this.i); 135 135 };
Note: See TracChangeset
for help on using the changeset viewer.