Changeset 105 for pycodeshooter


Ignore:
Timestamp:
01/23/11 02:09:20 (13 years ago)
Author:
atzm
Message:

fixed a bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pycodeshooter/trunk/shooter/bullet.js

    r101 r105  
    129129 
    130130    that.next = function() { 
    131         this.x   += Math.cos(this.dir) * this.i * this.getSign(); 
     131        this.x   += Math.cos(this.dir) * this.i; 
    132132        this.y   += Math.sin(this.dir) * this.i; 
    133         this.dir += (this.delta / this.i); 
     133        this.dir += (this.delta / this.i) * this.getSign(); 
    134134        this.i   += (this.delta / this.i); 
    135135    }; 
Note: See TracChangeset for help on using the changeset viewer.