13 lines
574 B
JavaScript
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();
|
|
});
|