mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-19 01:24:26 +00:00
* Add the initial support for settings * Rearrange init order for the settings and log modules * Add import settings function * Add initial settings display panel * Add settings controls * Add settings controls handlers * Add garbage gui auto-builder for settings * Add some custom binding handlers for settings * Add super ineffective ¯\_(ツ)_/¯ keyboard bindings remap function * Migrate keyboard to codes instead deprecated keyCodes * Abort key remap on Esc Co-authored-by: Sergey Stepanov <sergystepanov@gmail.com>
10 lines
227 B
JavaScript
Vendored
10 lines
227 B
JavaScript
Vendored
settings.init();
|
|
log.setLevel(settings.loadOr(opts.LOG_LEVEL, 'debug'));
|
|
|
|
keyboard.init();
|
|
joystick.init();
|
|
touch.init();
|
|
|
|
[roomId, zone] = room.loadMaybe();
|
|
// if from URL -> start game immediately!
|
|
socket.init(roomId, zone);
|