server/www/main.js
2018-08-26 18:43:08 +02:00

13 lines
574 B
JavaScript

window.addEventListener('load', function() {
var dom = Dom();
var fun = Fun();
var screen = Screen({dom: dom});
var messaging = Messaging();
var session = Session({messaging: messaging});
var room = Room({dom: dom, messaging: messaging, session: session, fun: fun});
var login = Login({dom: dom, messaging: messaging, room: room, screen: screen, session: session});
var hanafuda = Hanafuda({fun: fun});
var game = Game({dom: dom, fun: fun, hanafuda: hanafuda, messaging: messaging, room: room, screen: screen, session: session});
messaging.start();
});