Jump to content

Understanding preload() and create()


Chupup Games
 Share

Recommended Posts

Where in the documentation can I find this functions? I searched under the Game class, but didn't find anything.

 

var game = new Phaser.Game(..., { preload: preload, create: create})

 

What happens here? Is preload (the 1.) one Variable and the 2. preload is the function assigned to it?

 

Why is it not: preload: preload()   ?

 

I think this is one basic javascript thing, but i couldn't find more information about this. 

 

Can somebody please point me to this topic in the Javascript Documentation, where I can find one explanation about this?

 

Thanks

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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