Browse Subversion Repository
Diff of /trunk/jgame.js
Parent Directory
| Revision Log
| Patch
| 2787 |
GameTimer.prototype.tryFire = function (t) { |
GameTimer.prototype.tryFire = function (t) { |
| 2788 |
this.tick += t; |
this.tick += t; |
| 2789 |
if (this.wait <= this.tick) |
if (this.wait <= this.tick) |
| 2790 |
this.fire(t); |
this.fire(); |
| 2791 |
}; |
}; |
| 2792 |
|
|
| 2793 |
GameTimer.prototype.fire = function (t) { |
GameTimer.prototype.fire = function () { |
| 2794 |
this.tick = 0; |
this.tick = 0; |
| 2795 |
|
|
| 2796 |
this.trigger.fastFire(t); |
this.trigger.fastFire(this); |
| 2797 |
}; |
}; |
| 2798 |
return GameTimer; |
return GameTimer; |
| 2799 |
})(); |
})(); |
|
|
Legend:
| Removed from v.117 |
|
| changed lines |
| |
Added in v.121 |
|
|
|