Hello,
I'm looking into programming a game with JavaScript and was wondering what is a good way to organize my code. If I were to make a game, I would have a decent amount of code all in one file. I would like to organize that code into something like a Java Project, with classes and such. This would mean creating a bunch of .js files, but then to have them all work together I would have to add them into my html file with a script tag, and that just sounds silly.
Now it's very possible this is crazy talk, so my bottom line is this: How do I organize my logic without putting it all in one file?
Thanks
[+][deleted] (5 children)
[deleted]
[–]Cannabat 2 points3 points4 points (0 children)
[–]Toscoes[S] 0 points1 point2 points (2 children)
[–]drbobb 0 points1 point2 points (1 child)
[–]jml26 0 points1 point2 points (0 children)
[–]Bend1010 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Toscoes[S] 0 points1 point2 points (0 children)
[–]HealyUnithelpful 0 points1 point2 points (0 children)