server/www/main.js

14 lines
574 B
JavaScript
Raw Normal View History

window.addEventListener('load', function() {
var dom = Dom();
var fun = Fun();
2018-08-02 00:00:13 +02:00
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});
2018-08-02 00:00:13 +02:00
var game = Game({dom: dom, fun: fun, hanafuda: hanafuda, messaging: messaging, room: room, screen: screen, session: session});
messaging.start();
});