logan-r / vilify

Unleash Your Inner Mad Scientist and Destroy the World (with Ice Cream) in this Open Source HTML5 Game
http://logan-r.github.io/vilify/
GNU General Public License v3.0
32 stars 25 forks source link

Splitting code? #16

Closed sru closed 11 years ago

sru commented 11 years ago

The main.js looks a bit messy. Is it good idea to split the code into several files, or not?

ghost commented 11 years ago

@zento I think it is a good idea. I already started to do this with physics.js (now utilities.js). Maybe we should have a file containing an abstract game engine. Then another file containing Vilify-specific code.

sru commented 11 years ago

So,

  1. Game engine (engine.js): contains AI, loading mechanism (should this be going to utilities.js?) and such.
  2. Vilify-specific (main.js): contains Vilify-specific code
logan-r commented 11 years ago

@zento Yeah, that should work.