Jump to content

Phaser time


arun
 Share

Recommended Posts

Hi friends,  the code below if (this.nextShotAt>this.time.now is not understood.

is this.time.now  indicates  the system's clock  time or else?

 

fire: function()

{

if (this.nextShotAt > this.time.now)

{ return;

}
if (this.bulletPool.countDead() === 0) { return; }
this.nextShotAt = this.time.now + this.shotDelay

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...