stefan-brus / mushroom-viking

Learning web development by making an idle clicker game
1 stars 0 forks source link

Split game.js into several modules #33

Open stefan-brus opened 10 years ago

stefan-brus commented 10 years ago

The main game module is getting very big and hard to overlook. It would be good to split it into several different modules.

stefan-brus commented 10 years ago

A lot of the code that controls the display of things could be reworked and moved to script.js for example, or even into its own module, this would achieve some sense of MVC architecture.

stefan-brus commented 10 years ago

Consider using require.js: https://github.com/jrburke/requirejs