Jump to content

[Pseudo-Pixi Question] How do I move my javascript code into its own file?


Recommended Posts

So I have this code:



As you see, it's just an html file with some javascript code embedded into it. It works fine, but I obviously can't have an entire game's code just smashed into the html5 file. Would anyone mind explaining to me, as if I'm a complete idiot, how to link a javascript file in html5 and have it call the appropriate calls? 



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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