-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
170 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
"use strict"; | ||
|
||
const TEXT = (() => { | ||
const KEY_SHIFT = "⇧"; | ||
const KEY_CMD = "⌘"; | ||
|
||
return Object.freeze({ | ||
hint_start: `Press Space to start`, | ||
hint_pick: `Pick your desired color by pressing the corresponding LEFT key (e.g. M for Orange).`, | ||
hint_proceed: `Press Space or Enter to start!`, | ||
hint_next: `Press Space or Enter to proceed, or Esc to quit.`, | ||
hint_quit: `Press Space or Enter to start over.`, | ||
hint_alt: `Alt plus some other keys may cause undesired behavior (e.g. switching windows).`, | ||
hint_ctrl: `Ctrl plus some other keys may cause undesired behavior (e.g. closing the tab).`, | ||
hint_mouse: `Make sure to keep the mouse cursor inside the browser window.`, | ||
|
||
keyboard_fullscreen_mac: `${KEY_CMD} + ${KEY_SHIFT} + F`, | ||
keyboard_fullscreen_standard: "F11", | ||
|
||
getFullscreenHint: (shortcut) => `Press ${shortcut} to toggle fullscreen`, | ||
}); | ||
})(); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
"use strict"; | ||
|
||
const STRINGS = Object.freeze({ | ||
game_url: "ZATACKA.html", | ||
const STRINGS = (() => { | ||
return Object.freeze({ | ||
game_url: "ZATACKA.html", | ||
|
||
class_hidden: "hidden", | ||
class_active: "active", | ||
class_nocursor: "nocursor", | ||
class_hidden: "hidden", | ||
class_active: "active", | ||
class_nocursor: "nocursor", | ||
|
||
pref_key_cursor: "cursor", | ||
pref_value_cursor_always_visible: "always_visible", | ||
pref_value_cursor_hidden_when_mouse_used_by_player: "hidden_when_mouse_used_by_player", | ||
pref_value_cursor_always_hidden: "always_hidden", | ||
id_start_hint: "start-hint", | ||
id_fullscreen_hint: "fullscreen-hint", | ||
|
||
pref_key_hints: "hints", | ||
pref_value_hints_all: "all", | ||
pref_value_hints_warnings_only: "warnings", | ||
pref_value_hints_none: "none", | ||
}); | ||
pref_key_cursor: "cursor", | ||
pref_value_cursor_always_visible: "always_visible", | ||
pref_value_cursor_hidden_when_mouse_used_by_player: "hidden_when_mouse_used_by_player", | ||
pref_value_cursor_always_hidden: "always_hidden", | ||
|
||
pref_key_hints: "hints", | ||
pref_value_hints_all: "all", | ||
pref_value_hints_warnings_only: "warnings", | ||
pref_value_hints_none: "none", | ||
}); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters