Between multiple files

Discuss issues specific the Javascript port of Box2D
Posts: 4
Joined: Wed Oct 26, 2011 3:27 am

Between multiple files

Postby Mixel » Wed Oct 26, 2011 3:31 am

What is the best way to use a single world in multiple Javascript files? It is probably either passing a pointer to the world into a function, or defining it in a file that contains global variables and importing the file.

Return to “Javascript”

Who is online

Users browsing this forum: No registered users and 1 guest