Jump to content

tutorial question: when to create variable


Recommended Posts

Just going through the P3 tutorial "Making your first Phaser 3 game". I realized that "bombs" is not declared first as a variable, unlike "platforms", "player", etc.  It functions with or without the declaration, so when is it necessary to declare the variable ahead of its first use? 


Link to comment
Share on other sites


  • Recently Browsing   0 members

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