mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-21 17:18:47 +00:00
* Initial new frontend rewrite * Refactor some module deps * Fix options ref in the ajax module * Refactor * Add controller state * Refactor
13 lines
261 B
JavaScript
Vendored
13 lines
261 B
JavaScript
Vendored
log.setLevel('debug');
|
|
|
|
$(document).ready(() => {
|
|
env.display().fixScreenLayout();
|
|
|
|
keyboard.init();
|
|
joystick.init();
|
|
touch.init();
|
|
|
|
const roomId = room.loadMaybe();
|
|
// if from URL -> start game immediately!
|
|
socket.init(roomId);
|
|
});
|