2017-01-21 14:55:18 +00:00
|
|
|
import State from './state';
|
|
|
|
import View from './view';
|
|
|
|
import Controller from './controller';
|
|
|
|
import { TouchController, DesktopController } from './input-controller';
|
|
|
|
import DriveController from './drive-controller';
|
|
|
|
|
2014-01-09 20:18:46 +00:00
|
|
|
/**
|
2014-01-12 10:37:38 +00:00
|
|
|
* Runs the application.
|
2014-01-09 20:18:46 +00:00
|
|
|
*/
|
2017-01-21 14:55:18 +00:00
|
|
|
(function() {
|
|
|
|
var state = new State();
|
|
|
|
var view = new View(state);
|
|
|
|
var controller = new Controller(view, state);
|
|
|
|
var touchController = new TouchController(controller);
|
|
|
|
var desktopController = new DesktopController(controller);
|
|
|
|
var driveController = new DriveController(state, view);
|
2014-01-08 22:24:16 +00:00
|
|
|
view.animate();
|
2017-01-21 14:55:18 +00:00
|
|
|
})();
|