Changeset 101 for pycodeshooter
- Timestamp:
- 01/23/11 00:03:20 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pycodeshooter/trunk/shooter/bullet.js
r95 r101 63 63 var that = new LinerBullet(size, color, x, y, dir, speed); 64 64 65 that.dx = that.speed * that.deltaBaseX / 2;66 that.dy = that.speed * that.deltaBaseY / 2;65 that.dx = that.speed * that.deltaBaseX / 1.5; 66 that.dy = that.speed * that.deltaBaseY / 1.5; 67 67 68 68 that.getDeltaX = function() { … … 85 85 that.i = 1; 86 86 that.getAxisDeltaX = function() { 87 return this.getCurrentDelta(this.i, 2);87 return this.getCurrentDelta(this.i, 1.5); 88 88 }; 89 89 that.getAxisDeltaY = function() { 90 return this.getCurrentDelta(this.i++, 2);90 return this.getCurrentDelta(this.i++, 1.5); 91 91 }; 92 92 … … 99 99 that.i = 1; 100 100 that.getAxisDeltaX = function() { 101 return this.getCurrentDelta(this.i, 2);101 return this.getCurrentDelta(this.i, 1.5); 102 102 }; 103 103 that.getAxisDeltaY = function() { 104 return 1 / this.getCurrentDelta(this.i++, 2);104 return 1 / this.getCurrentDelta(this.i++, 1.5); 105 105 }; 106 106
Note: See TracChangeset
for help on using the changeset viewer.