brick-engine-js 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.local.example +2 -0
- package/.github/workflows/publish.yml +73 -0
- package/.prettierignore +2 -0
- package/.prettierrc.json +8 -0
- package/README.adoc +84 -0
- package/dist/8e23286c2fdf41fd795f.svg +32 -0
- package/dist/CNAME +1 -0
- package/dist/app.js +2 -0
- package/dist/app.js.map +1 -0
- package/dist/brick-engine.js +2 -0
- package/dist/brick-engine.js.map +1 -0
- package/dist/config/configs.d.ts +180 -0
- package/dist/config/configs.test.d.ts +1 -0
- package/dist/config/env.d.ts +2 -0
- package/dist/config/env.test.d.ts +1 -0
- package/dist/config/styles.d.ts +0 -0
- package/dist/core/Game.d.ts +107 -0
- package/dist/core/Game.test.d.ts +1 -0
- package/dist/core/InitialStateSnapshot.d.ts +19 -0
- package/dist/core/InitialStateSnapshot.test.d.ts +1 -0
- package/dist/core/helpers/CellHelper.d.ts +13 -0
- package/dist/core/helpers/CellHelper.test.d.ts +1 -0
- package/dist/core/helpers/ControlInputHandlerHelper.d.ts +32 -0
- package/dist/core/helpers/ControlInputHandlerHelper.test.d.ts +1 -0
- package/dist/core/helpers/CoordinateHelper.d.ts +54 -0
- package/dist/core/helpers/CoordinateHelper.test.d.ts +1 -0
- package/dist/core/helpers/InterfaceIdentifierHelper.d.ts +7 -0
- package/dist/core/helpers/InterfaceIdentifierHelper.test.d.ts +1 -0
- package/dist/core/helpers/RelativeValuesHelper.d.ts +23 -0
- package/dist/core/helpers/RelativeValuesHelper.test.d.ts +1 -0
- package/dist/core/module/control/GameControl.d.ts +62 -0
- package/dist/core/module/control/GameControl.test.d.ts +1 -0
- package/dist/core/module/control/GameControlKeyBinding.d.ts +36 -0
- package/dist/core/module/control/GameControlKeyBinding.test.d.ts +1 -0
- package/dist/core/module/grid/GameGrid.d.ts +399 -0
- package/dist/core/module/grid/GameGrid.test.d.ts +1 -0
- package/dist/core/module/grid/GameHudGrid.d.ts +24 -0
- package/dist/core/module/grid/GameHudGrid.test.d.ts +1 -0
- package/dist/core/module/grid/engines/GridAnalysisEngine.d.ts +29 -0
- package/dist/core/module/grid/engines/GridAnalysisEngine.test.d.ts +1 -0
- package/dist/core/module/grid/engines/GridLineEngine.d.ts +56 -0
- package/dist/core/module/grid/engines/GridLineEngine.test.d.ts +1 -0
- package/dist/core/module/grid/engines/GridMovementEngine.d.ts +29 -0
- package/dist/core/module/grid/engines/GridMovementEngine.test.d.ts +1 -0
- package/dist/core/module/grid/engines/GridRegionEngine.d.ts +26 -0
- package/dist/core/module/grid/engines/GridRegionEngine.test.d.ts +1 -0
- package/dist/core/module/grid/engines/GridTransformEngine.d.ts +24 -0
- package/dist/core/module/grid/engines/GridTransformEngine.test.d.ts +1 -0
- package/dist/core/module/renderer/DisplayRenderer.d.ts +51 -0
- package/dist/core/module/renderer/DisplayRenderer.test.d.ts +1 -0
- package/dist/core/module/renderer/GameRenderer.d.ts +59 -0
- package/dist/core/module/renderer/GameRenderer.test.d.ts +1 -0
- package/dist/core/module/renderer/HudRenderer.d.ts +56 -0
- package/dist/core/module/renderer/HudRenderer.test.d.ts +1 -0
- package/dist/core/module/score/GameScore.d.ts +117 -0
- package/dist/core/module/score/GameScore.test.d.ts +1 -0
- package/dist/core/module/session/GameSession.d.ts +20 -0
- package/dist/core/module/session/GameSession.test.d.ts +1 -0
- package/dist/core/module/sound/GameSound.d.ts +85 -0
- package/dist/core/module/sound/GameSound.test.d.ts +1 -0
- package/dist/core/module/state/GameState.d.ts +172 -0
- package/dist/core/module/state/GameState.test.d.ts +1 -0
- package/dist/core/module/text/GameText.d.ts +87 -0
- package/dist/core/module/text/GameText.test.d.ts +1 -0
- package/dist/core/module/time/GameTime.d.ts +76 -0
- package/dist/core/module/time/GameTime.test.d.ts +1 -0
- package/dist/core/types/Interfaces.d.ts +53 -0
- package/dist/core/types/Types.d.ts +114 -0
- package/dist/core/types/enums.d.ts +106 -0
- package/dist/core/types/modules.d.ts +723 -0
- package/dist/css/app.743066d8e4172b0e73f9.css +824 -0
- package/dist/css/app.743066d8e4172b0e73f9.css.map +1 -0
- package/dist/docs/GAME_DEVELOPER_GUIDE.html +727 -0
- package/dist/docs/brick-engine-guide.html +610 -0
- package/dist/docs/diagrams/lifecycle.mmd +19 -0
- package/dist/docs/documentation_style_guide.html +994 -0
- package/dist/docs/getting-started.html +648 -0
- package/dist/docs/images/lifecycle.svg +1 -0
- package/dist/docs/index.html +593 -0
- package/dist/docs/jsdoc_standard.html +656 -0
- package/dist/docs/publishing.html +573 -0
- package/dist/docs/reference/enums/Color.html +533 -0
- package/dist/docs/reference/enums/ControlEventType.html +505 -0
- package/dist/docs/reference/enums/ControlKey.html +529 -0
- package/dist/docs/reference/enums/FontAlignment.html +545 -0
- package/dist/docs/reference/enums/FontSize.html +517 -0
- package/dist/docs/reference/enums/Sound.html +558 -0
- package/dist/docs/reference/enums/StateProperty.html +525 -0
- package/dist/docs/reference/helpers/CellHelper.html +520 -0
- package/dist/docs/reference/helpers/ControlInputHandlerHelper.html +569 -0
- package/dist/docs/reference/helpers/CoordinateHelper.html +703 -0
- package/dist/docs/reference/helpers/RelativeValuesHelper.html +560 -0
- package/dist/docs/reference/interfaces/Debuggable.html +501 -0
- package/dist/docs/reference/interfaces/GameModules.html +544 -0
- package/dist/docs/reference/interfaces/Initializable.html +495 -0
- package/dist/docs/reference/interfaces/RendererInitializable.html +517 -0
- package/dist/docs/reference/interfaces/StateSyncable.html +542 -0
- package/dist/docs/reference/interfaces/modules/Control.html +648 -0
- package/dist/docs/reference/interfaces/modules/Grid.html +1256 -0
- package/dist/docs/reference/interfaces/modules/Renderer.html +522 -0
- package/dist/docs/reference/interfaces/modules/RendererComposite.html +577 -0
- package/dist/docs/reference/interfaces/modules/Score.html +669 -0
- package/dist/docs/reference/interfaces/modules/Session.html +585 -0
- package/dist/docs/reference/interfaces/modules/State.html +897 -0
- package/dist/docs/reference/interfaces/modules/Text.html +668 -0
- package/dist/docs/reference/interfaces/modules/Time.html +684 -0
- package/dist/docs/reference/modules/Debugger.html +579 -0
- package/dist/docs/reference/modules/DisplayRenderer.html +557 -0
- package/dist/docs/reference/modules/Game.html +909 -0
- package/dist/docs/reference/modules/GameControl.html +716 -0
- package/dist/docs/reference/modules/GameGrid.html +1910 -0
- package/dist/docs/reference/modules/GameHudGrid.html +508 -0
- package/dist/docs/reference/modules/GameMenu.html +538 -0
- package/dist/docs/reference/modules/GameRenderer.html +589 -0
- package/dist/docs/reference/modules/GameScore.html +664 -0
- package/dist/docs/reference/modules/GameSession.html +533 -0
- package/dist/docs/reference/modules/GameSound.html +636 -0
- package/dist/docs/reference/modules/GameState.html +922 -0
- package/dist/docs/reference/modules/GameText.html +701 -0
- package/dist/docs/reference/modules/GameTime.html +696 -0
- package/dist/docs/reference/modules/HudRenderer.html +568 -0
- package/dist/docs/reference/modules/InitialStateSnapshot.html +557 -0
- package/dist/docs/reference/modules/SessionModal.html +520 -0
- package/dist/docs/reference/types/Axis.html +505 -0
- package/dist/docs/reference/types/Cell.html +514 -0
- package/dist/docs/reference/types/ControlCallback.html +488 -0
- package/dist/docs/reference/types/Coordinate.html +510 -0
- package/dist/docs/reference/types/GameEntry.html +514 -0
- package/dist/docs/reference/types/GameEvent.html +514 -0
- package/dist/docs/reference/types/Piece.html +506 -0
- package/dist/docs/reference/types/RendererMetrics.html +514 -0
- package/dist/docs/reference/types/Vector.html +509 -0
- package/dist/docs/testing_best_practices.html +770 -0
- package/dist/favicon.ico +0 -0
- package/dist/fonts/digital-7.monoitalic.ttf +0 -0
- package/dist/images/cell.svg +32 -0
- package/dist/images/close.png +0 -0
- package/dist/images/games.png +0 -0
- package/dist/images/github.png +0 -0
- package/dist/images/letter-a.png +0 -0
- package/dist/images/letter-d.png +0 -0
- package/dist/images/letter-j.png +0 -0
- package/dist/images/letter-s.png +0 -0
- package/dist/images/letter-w.png +0 -0
- package/dist/images/meta-image.png +0 -0
- package/dist/images/number-1.png +0 -0
- package/dist/images/number-2.png +0 -0
- package/dist/images/number-3.png +0 -0
- package/dist/images/number-4.png +0 -0
- package/dist/images/number-5.png +0 -0
- package/dist/images/number-6.png +0 -0
- package/dist/images/splash.gif +0 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.html +1 -0
- package/dist/index.test.d.ts +1 -0
- package/dist/main.d.ts +3 -0
- package/dist/main.test.d.ts +1 -0
- package/dist/menu/GameMenu.d.ts +15 -0
- package/dist/menu/GameMenu.test.d.ts +1 -0
- package/dist/menu/GameMenuSingleton.d.ts +6 -0
- package/dist/menu/GameMenuSingleton.test.d.ts +1 -0
- package/dist/menu/GameRepository.d.ts +7 -0
- package/dist/menu/GameRepository.test.d.ts +1 -0
- package/dist/menu/manager/GameManager.d.ts +6 -0
- package/dist/menu/manager/GameManager.test.d.ts +1 -0
- package/dist/sounds/sound_00.wav +0 -0
- package/dist/sounds/sound_01.wav +0 -0
- package/dist/sounds/sound_02.wav +0 -0
- package/dist/sounds/sound_03.wav +0 -0
- package/dist/sounds/sound_04.wav +0 -0
- package/dist/sounds/sound_05.wav +0 -0
- package/dist/sounds/sound_06.wav +0 -0
- package/dist/sounds/sound_07.wav +0 -0
- package/dist/sounds/sound_08.wav +0 -0
- package/dist/sounds/sound_09.wav +0 -0
- package/dist/sounds/sound_10.wav +0 -0
- package/dist/sounds/sound_11.wav +0 -0
- package/dist/sounds/sound_12.wav +0 -0
- package/dist/sounds/sound_13.wav +0 -0
- package/dist/sounds/sound_14.wav +0 -0
- package/dist/sounds/sound_15.wav +0 -0
- package/dist/types/interfaces.d.ts +5 -0
- package/dist/vendor/p5.min.js +1 -0
- package/dist/view/Debugger.d.ts +12 -0
- package/dist/view/Debugger.test.d.ts +1 -0
- package/dist/view/GameView.d.ts +101 -0
- package/dist/view/GameView.test.d.ts +1 -0
- package/dist/view/SessionModal.d.ts +12 -0
- package/dist/view/SessionModal.test.d.ts +4 -0
- package/dist/view/components/layout/ButtonLayout.d.ts +25 -0
- package/dist/view/components/layout/ButtonLayout.test.d.ts +1 -0
- package/dist/view/components/layout/ContainerLayout.d.ts +23 -0
- package/dist/view/components/layout/ContainerLayout.test.d.ts +1 -0
- package/dist/view/components/layout/FrameLayout.d.ts +11 -0
- package/dist/view/components/layout/FrameLayout.test.d.ts +1 -0
- package/dist/view/components/ui/BigButton.d.ts +13 -0
- package/dist/view/components/ui/BigButton.test.d.ts +1 -0
- package/dist/view/components/ui/Button.d.ts +12 -0
- package/dist/view/components/ui/Button.test.d.ts +1 -0
- package/dist/view/components/ui/Canvas.d.ts +22 -0
- package/dist/view/components/ui/Canvas.test.d.ts +1 -0
- package/dist/view/components/ui/SmallButton.d.ts +13 -0
- package/dist/view/components/ui/SmallButton.test.d.ts +1 -0
- package/dist/view/theme/applyColors.d.ts +10 -0
- package/dist/view/theme/applyColors.test.d.ts +1 -0
- package/dist/view/theme/dimensions.d.ts +13 -0
- package/dist/view/theme/dimensions.test.d.ts +1 -0
- package/docs/GAME_DEVELOPER_GUIDE.adoc +167 -0
- package/docs/brick-engine-guide.adoc +87 -0
- package/docs/diagrams/lifecycle.mmd +19 -0
- package/docs/documentation_style_guide.adoc +210 -0
- package/docs/getting-started.adoc +147 -0
- package/docs/images/lifecycle.svg +1 -0
- package/docs/jsdoc_standard.adoc +109 -0
- package/docs/publishing.adoc +58 -0
- package/docs/reference/enums/Color.adoc +35 -0
- package/docs/reference/enums/ControlEventType.adoc +28 -0
- package/docs/reference/enums/ControlKey.adoc +34 -0
- package/docs/reference/enums/FontAlignment.adoc +43 -0
- package/docs/reference/enums/FontSize.adoc +31 -0
- package/docs/reference/enums/Sound.adoc +42 -0
- package/docs/reference/enums/StateProperty.adoc +33 -0
- package/docs/reference/helpers/CellHelper.adoc +37 -0
- package/docs/reference/helpers/ControlInputHandlerHelper.adoc +57 -0
- package/docs/reference/helpers/CoordinateHelper.adoc +118 -0
- package/docs/reference/helpers/RelativeValuesHelper.adoc +53 -0
- package/docs/reference/interfaces/Debuggable.adoc +29 -0
- package/docs/reference/interfaces/GameModules.adoc +35 -0
- package/docs/reference/interfaces/Initializable.adoc +24 -0
- package/docs/reference/interfaces/RendererInitializable.adoc +33 -0
- package/docs/reference/interfaces/StateSyncable.adoc +41 -0
- package/docs/reference/interfaces/modules/Control.adoc +98 -0
- package/docs/reference/interfaces/modules/Grid.adoc +411 -0
- package/docs/reference/interfaces/modules/Renderer.adoc +34 -0
- package/docs/reference/interfaces/modules/RendererComposite.adoc +57 -0
- package/docs/reference/interfaces/modules/Score.adoc +107 -0
- package/docs/reference/interfaces/modules/Session.adoc +66 -0
- package/docs/reference/interfaces/modules/State.adoc +290 -0
- package/docs/reference/interfaces/modules/Text.adoc +110 -0
- package/docs/reference/interfaces/modules/Time.adoc +119 -0
- package/docs/reference/modules/Debugger.adoc +71 -0
- package/docs/reference/modules/DisplayRenderer.adoc +55 -0
- package/docs/reference/modules/Game.adoc +256 -0
- package/docs/reference/modules/GameControl.adoc +139 -0
- package/docs/reference/modules/GameGrid.adoc +794 -0
- package/docs/reference/modules/GameHudGrid.adoc +38 -0
- package/docs/reference/modules/GameMenu.adoc +39 -0
- package/docs/reference/modules/GameRenderer.adoc +79 -0
- package/docs/reference/modules/GameScore.adoc +138 -0
- package/docs/reference/modules/GameSession.adoc +43 -0
- package/docs/reference/modules/GameSound.adoc +111 -0
- package/docs/reference/modules/GameState.adoc +318 -0
- package/docs/reference/modules/GameText.adoc +139 -0
- package/docs/reference/modules/GameTime.adoc +141 -0
- package/docs/reference/modules/HudRenderer.adoc +56 -0
- package/docs/reference/modules/InitialStateSnapshot.adoc +47 -0
- package/docs/reference/modules/SessionModal.adoc +34 -0
- package/docs/reference/types/Axis.adoc +28 -0
- package/docs/reference/types/Cell.adoc +29 -0
- package/docs/reference/types/ControlCallback.adoc +23 -0
- package/docs/reference/types/Coordinate.adoc +29 -0
- package/docs/reference/types/GameEntry.adoc +29 -0
- package/docs/reference/types/GameEvent.adoc +29 -0
- package/docs/reference/types/Piece.adoc +32 -0
- package/docs/reference/types/RendererMetrics.adoc +29 -0
- package/docs/reference/types/Vector.adoc +28 -0
- package/docs/testing_best_practices.adoc +190 -0
- package/eslint.config.mjs +29 -0
- package/package.json +54 -0
- package/public/CNAME +1 -0
- package/public/docs/GAME_DEVELOPER_GUIDE.html +727 -0
- package/public/docs/brick-engine-guide.html +610 -0
- package/public/docs/diagrams/lifecycle.mmd +19 -0
- package/public/docs/documentation_style_guide.html +994 -0
- package/public/docs/getting-started.html +648 -0
- package/public/docs/images/lifecycle.svg +1 -0
- package/public/docs/index.html +593 -0
- package/public/docs/jsdoc_standard.html +656 -0
- package/public/docs/publishing.html +573 -0
- package/public/docs/reference/enums/Color.html +533 -0
- package/public/docs/reference/enums/ControlEventType.html +505 -0
- package/public/docs/reference/enums/ControlKey.html +529 -0
- package/public/docs/reference/enums/FontAlignment.html +545 -0
- package/public/docs/reference/enums/FontSize.html +517 -0
- package/public/docs/reference/enums/Sound.html +558 -0
- package/public/docs/reference/enums/StateProperty.html +525 -0
- package/public/docs/reference/helpers/CellHelper.html +520 -0
- package/public/docs/reference/helpers/ControlInputHandlerHelper.html +569 -0
- package/public/docs/reference/helpers/CoordinateHelper.html +703 -0
- package/public/docs/reference/helpers/RelativeValuesHelper.html +560 -0
- package/public/docs/reference/interfaces/Debuggable.html +501 -0
- package/public/docs/reference/interfaces/GameModules.html +544 -0
- package/public/docs/reference/interfaces/Initializable.html +495 -0
- package/public/docs/reference/interfaces/RendererInitializable.html +517 -0
- package/public/docs/reference/interfaces/StateSyncable.html +542 -0
- package/public/docs/reference/interfaces/modules/Control.html +648 -0
- package/public/docs/reference/interfaces/modules/Grid.html +1256 -0
- package/public/docs/reference/interfaces/modules/Renderer.html +522 -0
- package/public/docs/reference/interfaces/modules/RendererComposite.html +577 -0
- package/public/docs/reference/interfaces/modules/Score.html +669 -0
- package/public/docs/reference/interfaces/modules/Session.html +585 -0
- package/public/docs/reference/interfaces/modules/State.html +897 -0
- package/public/docs/reference/interfaces/modules/Text.html +668 -0
- package/public/docs/reference/interfaces/modules/Time.html +684 -0
- package/public/docs/reference/modules/Debugger.html +579 -0
- package/public/docs/reference/modules/DisplayRenderer.html +557 -0
- package/public/docs/reference/modules/Game.html +909 -0
- package/public/docs/reference/modules/GameControl.html +716 -0
- package/public/docs/reference/modules/GameGrid.html +1910 -0
- package/public/docs/reference/modules/GameHudGrid.html +508 -0
- package/public/docs/reference/modules/GameMenu.html +538 -0
- package/public/docs/reference/modules/GameRenderer.html +589 -0
- package/public/docs/reference/modules/GameScore.html +664 -0
- package/public/docs/reference/modules/GameSession.html +533 -0
- package/public/docs/reference/modules/GameSound.html +636 -0
- package/public/docs/reference/modules/GameState.html +922 -0
- package/public/docs/reference/modules/GameText.html +701 -0
- package/public/docs/reference/modules/GameTime.html +696 -0
- package/public/docs/reference/modules/HudRenderer.html +568 -0
- package/public/docs/reference/modules/InitialStateSnapshot.html +557 -0
- package/public/docs/reference/modules/SessionModal.html +520 -0
- package/public/docs/reference/types/Axis.html +505 -0
- package/public/docs/reference/types/Cell.html +514 -0
- package/public/docs/reference/types/ControlCallback.html +488 -0
- package/public/docs/reference/types/Coordinate.html +510 -0
- package/public/docs/reference/types/GameEntry.html +514 -0
- package/public/docs/reference/types/GameEvent.html +514 -0
- package/public/docs/reference/types/Piece.html +506 -0
- package/public/docs/reference/types/RendererMetrics.html +514 -0
- package/public/docs/reference/types/Vector.html +509 -0
- package/public/docs/testing_best_practices.html +770 -0
- package/public/favicon.ico +0 -0
- package/public/fonts/digital-7.monoitalic.ttf +0 -0
- package/public/images/cell.svg +32 -0
- package/public/images/close.png +0 -0
- package/public/images/games.png +0 -0
- package/public/images/github.png +0 -0
- package/public/images/letter-a.png +0 -0
- package/public/images/letter-d.png +0 -0
- package/public/images/letter-j.png +0 -0
- package/public/images/letter-s.png +0 -0
- package/public/images/letter-w.png +0 -0
- package/public/images/meta-image.png +0 -0
- package/public/images/number-1.png +0 -0
- package/public/images/number-2.png +0 -0
- package/public/images/number-3.png +0 -0
- package/public/images/number-4.png +0 -0
- package/public/images/number-5.png +0 -0
- package/public/images/number-6.png +0 -0
- package/public/images/splash.gif +0 -0
- package/public/index.html +15 -0
- package/public/sounds/sound_00.wav +0 -0
- package/public/sounds/sound_01.wav +0 -0
- package/public/sounds/sound_02.wav +0 -0
- package/public/sounds/sound_03.wav +0 -0
- package/public/sounds/sound_04.wav +0 -0
- package/public/sounds/sound_05.wav +0 -0
- package/public/sounds/sound_06.wav +0 -0
- package/public/sounds/sound_07.wav +0 -0
- package/public/sounds/sound_08.wav +0 -0
- package/public/sounds/sound_09.wav +0 -0
- package/public/sounds/sound_10.wav +0 -0
- package/public/sounds/sound_11.wav +0 -0
- package/public/sounds/sound_12.wav +0 -0
- package/public/sounds/sound_13.wav +0 -0
- package/public/sounds/sound_14.wav +0 -0
- package/public/sounds/sound_15.wav +0 -0
- package/public/style/body.css +86 -0
- package/public/style/buttons.css +233 -0
- package/public/style/debugger.css +117 -0
- package/public/style/sessionModal.css +155 -0
- package/public/style/sourceCodeAndCommands.css +74 -0
- package/public/style/splash.css +13 -0
- package/public/style/theme.css +137 -0
- package/scripts/generate-diagrams.sh +20 -0
- package/scripts/generate-docs.js +111 -0
- package/src/client-game.d.ts +1 -0
- package/src/config/configs.test.ts +20 -0
- package/src/config/configs.ts +197 -0
- package/src/config/env.test.ts +59 -0
- package/src/config/env.ts +7 -0
- package/src/config/styles.ts +5 -0
- package/src/core/Game.test.ts +167 -0
- package/src/core/Game.ts +307 -0
- package/src/core/InitialStateSnapshot.test.ts +51 -0
- package/src/core/InitialStateSnapshot.ts +46 -0
- package/src/core/helpers/CellHelper.test.ts +33 -0
- package/src/core/helpers/CellHelper.ts +21 -0
- package/src/core/helpers/ControlInputHandlerHelper.test.ts +116 -0
- package/src/core/helpers/ControlInputHandlerHelper.ts +68 -0
- package/src/core/helpers/CoordinateHelper.test.ts +113 -0
- package/src/core/helpers/CoordinateHelper.ts +82 -0
- package/src/core/helpers/InterfaceIdentifierHelper.test.ts +122 -0
- package/src/core/helpers/InterfaceIdentifierHelper.ts +43 -0
- package/src/core/helpers/RelativeValuesHelper.test.ts +47 -0
- package/src/core/helpers/RelativeValuesHelper.ts +29 -0
- package/src/core/module/control/GameControl.test.ts +82 -0
- package/src/core/module/control/GameControl.ts +142 -0
- package/src/core/module/control/GameControlKeyBinding.test.ts +59 -0
- package/src/core/module/control/GameControlKeyBinding.ts +92 -0
- package/src/core/module/grid/GameGrid.test.ts +83 -0
- package/src/core/module/grid/GameGrid.ts +610 -0
- package/src/core/module/grid/GameHudGrid.test.ts +22 -0
- package/src/core/module/grid/GameHudGrid.ts +40 -0
- package/src/core/module/grid/engines/GridAnalysisEngine.test.ts +157 -0
- package/src/core/module/grid/engines/GridAnalysisEngine.ts +124 -0
- package/src/core/module/grid/engines/GridLineEngine.test.ts +132 -0
- package/src/core/module/grid/engines/GridLineEngine.ts +165 -0
- package/src/core/module/grid/engines/GridMovementEngine.test.ts +125 -0
- package/src/core/module/grid/engines/GridMovementEngine.ts +113 -0
- package/src/core/module/grid/engines/GridRegionEngine.test.ts +136 -0
- package/src/core/module/grid/engines/GridRegionEngine.ts +52 -0
- package/src/core/module/grid/engines/GridTransformEngine.test.ts +98 -0
- package/src/core/module/grid/engines/GridTransformEngine.ts +70 -0
- package/src/core/module/renderer/DisplayRenderer.test.ts +86 -0
- package/src/core/module/renderer/DisplayRenderer.ts +152 -0
- package/src/core/module/renderer/GameRenderer.test.ts +103 -0
- package/src/core/module/renderer/GameRenderer.ts +144 -0
- package/src/core/module/renderer/HudRenderer.test.ts +108 -0
- package/src/core/module/renderer/HudRenderer.ts +203 -0
- package/src/core/module/score/GameScore.test.ts +71 -0
- package/src/core/module/score/GameScore.ts +188 -0
- package/src/core/module/session/GameSession.test.ts +176 -0
- package/src/core/module/session/GameSession.ts +103 -0
- package/src/core/module/sound/GameSound.test.ts +117 -0
- package/src/core/module/sound/GameSound.ts +229 -0
- package/src/core/module/state/GameState.test.ts +101 -0
- package/src/core/module/state/GameState.ts +339 -0
- package/src/core/module/text/GameText.test.ts +87 -0
- package/src/core/module/text/GameText.ts +150 -0
- package/src/core/module/time/GameTime.test.ts +86 -0
- package/src/core/module/time/GameTime.ts +144 -0
- package/src/core/types/Interfaces.ts +59 -0
- package/src/core/types/Types.ts +124 -0
- package/src/core/types/enums.ts +113 -0
- package/src/core/types/modules.ts +841 -0
- package/src/index.test.ts +15 -0
- package/src/index.ts +9 -0
- package/src/main.test.ts +137 -0
- package/src/main.ts +77 -0
- package/src/menu/GameMenu.test.ts +157 -0
- package/src/menu/GameMenu.ts +124 -0
- package/src/menu/GameMenuSingleton.test.ts +26 -0
- package/src/menu/GameMenuSingleton.ts +13 -0
- package/src/menu/GameRepository.test.ts +46 -0
- package/src/menu/GameRepository.ts +47 -0
- package/src/menu/manager/GameManager.test.ts +68 -0
- package/src/menu/manager/GameManager.ts +50 -0
- package/src/types/global.d.ts +8 -0
- package/src/types/interfaces.ts +5 -0
- package/src/view/Debugger.test.ts +152 -0
- package/src/view/Debugger.ts +124 -0
- package/src/view/GameView.test.ts +95 -0
- package/src/view/GameView.ts +244 -0
- package/src/view/SessionModal.test.ts +141 -0
- package/src/view/SessionModal.ts +73 -0
- package/src/view/components/layout/ButtonLayout.test.ts +28 -0
- package/src/view/components/layout/ButtonLayout.ts +63 -0
- package/src/view/components/layout/ContainerLayout.test.ts +48 -0
- package/src/view/components/layout/ContainerLayout.ts +50 -0
- package/src/view/components/layout/FrameLayout.test.ts +24 -0
- package/src/view/components/layout/FrameLayout.ts +25 -0
- package/src/view/components/ui/BigButton.test.ts +28 -0
- package/src/view/components/ui/BigButton.ts +31 -0
- package/src/view/components/ui/Button.test.ts +30 -0
- package/src/view/components/ui/Button.ts +30 -0
- package/src/view/components/ui/Canvas.test.ts +32 -0
- package/src/view/components/ui/Canvas.ts +34 -0
- package/src/view/components/ui/SmallButton.test.ts +48 -0
- package/src/view/components/ui/SmallButton.ts +32 -0
- package/src/view/theme/applyColors.test.ts +47 -0
- package/src/view/theme/applyColors.ts +38 -0
- package/src/view/theme/dimensions.test.ts +34 -0
- package/src/view/theme/dimensions.ts +53 -0
- package/tsconfig.json +16 -0
- package/vitest.config.ts +14 -0
- package/webpack.config.js +133 -0
|
@@ -0,0 +1,824 @@
|
|
|
1
|
+
/* MAIN BODY */
|
|
2
|
+
|
|
3
|
+
#brick-game {
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
align-items: center;
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
#container {
|
|
12
|
+
width: var(--width);
|
|
13
|
+
height: var(--height);
|
|
14
|
+
|
|
15
|
+
background-color: var(--main-color);
|
|
16
|
+
|
|
17
|
+
border-radius: var(--border-radius);
|
|
18
|
+
border: var(--border);
|
|
19
|
+
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
margin: auto;
|
|
22
|
+
position: relative;
|
|
23
|
+
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
|
|
27
|
+
box-shadow:
|
|
28
|
+
calc(var(--width) * -0.03) calc(var(--width) * 0.03) var(--dispersion) black,
|
|
29
|
+
calc(var(--width) * -0.02) calc(var(--width) * 0.02) var(--dispersion) var(--color-shadow-reflexion) inset,
|
|
30
|
+
calc(var(--width) * 0.01) calc(var(--width) * -0.01) var(--dispersion) var(--color-shadow) inset;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
#brick-game-canvas {
|
|
34
|
+
border: var(--border);
|
|
35
|
+
box-shadow:
|
|
36
|
+
calc(var(--width) * -0.01) calc(var(--width) * 0.01) var(--dispersion) var(--color-shadow),
|
|
37
|
+
calc(var(--width) * 0.01) calc(var(--width) * -0.01) var(--dispersion) var(--color-shadow-reflexion);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* FRAME */
|
|
41
|
+
|
|
42
|
+
#frame {
|
|
43
|
+
border: var(--border);
|
|
44
|
+
border-radius: var(--border-radius);
|
|
45
|
+
|
|
46
|
+
position: relative;
|
|
47
|
+
|
|
48
|
+
width: calc(var(--width) * 0.85);
|
|
49
|
+
height: auto;
|
|
50
|
+
aspect-ratio: 9/10;
|
|
51
|
+
margin: 7.5%;
|
|
52
|
+
margin-bottom: 3.75%;
|
|
53
|
+
|
|
54
|
+
display: flex;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
align-items: center;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
#frame div {
|
|
60
|
+
position: absolute;
|
|
61
|
+
top: calc(var(--height) * -0.02);
|
|
62
|
+
left: 27.5%;
|
|
63
|
+
|
|
64
|
+
width: 45%;
|
|
65
|
+
height: calc(var(--height) * 0.03);
|
|
66
|
+
|
|
67
|
+
background-color: var(--main-color);
|
|
68
|
+
|
|
69
|
+
display: flex;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
|
|
72
|
+
padding-top: calc(var(--height) * 0.005);
|
|
73
|
+
padding-bottom: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
#frame p {
|
|
77
|
+
text-align: center;
|
|
78
|
+
|
|
79
|
+
font-family: 'retro-gamming';
|
|
80
|
+
font-weight: bold;
|
|
81
|
+
font-size: calc(var(--height) * 0.03);
|
|
82
|
+
|
|
83
|
+
text-shadow:
|
|
84
|
+
calc(var(--width) * -0.003) calc(var(--width) * 0.003) 0 var(--color-shadow),
|
|
85
|
+
calc(var(--width) * 0.002) calc(var(--width) * -0.002) 0 var(--color-shadow-reflexion);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* BUTTONS */
|
|
89
|
+
|
|
90
|
+
.sm-btn,
|
|
91
|
+
.btn,
|
|
92
|
+
.lg-btn {
|
|
93
|
+
z-index: 999;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.sm-btn {
|
|
97
|
+
box-shadow:
|
|
98
|
+
calc(var(--width) * -0.0075) calc(var(--width) * 0.0075) var(--dispersion) var(--color-shadow),
|
|
99
|
+
calc(var(--width) * -0.01) calc(var(--width) * 0.01) var(--dispersion) var(--button-color-reflexion) inset;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.sm-btn:active {
|
|
103
|
+
box-shadow:
|
|
104
|
+
calc(var(--width) * -0.004) calc(var(--width) * 0.004) var(--dispersion) var(--color-shadow),
|
|
105
|
+
calc(var(--width) * -0.003) calc(var(--width) * 0.003) var(--dispersion) var(--button-color-reflexion) inset;
|
|
106
|
+
transform: translateX(calc(var(--width) * -0.0025)) translateY(calc(var(--width) * 0.0025));
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.btn {
|
|
110
|
+
box-shadow:
|
|
111
|
+
calc(var(--width) * -0.015) calc(var(--width) * 0.015) var(--dispersion) var(--color-shadow),
|
|
112
|
+
calc(var(--width) * -0.0175) calc(var(--width) * 0.0175) var(--dispersion) var(--button-color-reflexion) inset;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.btn:active {
|
|
116
|
+
box-shadow:
|
|
117
|
+
calc(var(--width) * -0.004) calc(var(--width) * 0.004) var(--dispersion) var(--color-shadow),
|
|
118
|
+
calc(var(--width) * -0.003) calc(var(--width) * 0.003) var(--dispersion) var(--button-color-reflexion) inset;
|
|
119
|
+
transform: translateX(calc(var(--width) * -0.005)) translateY(calc(var(--width) * 0.005));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.lg-btn {
|
|
123
|
+
box-shadow:
|
|
124
|
+
calc(var(--width) * -0.02) calc(var(--width) * 0.02) var(--dispersion) var(--color-shadow),
|
|
125
|
+
calc(var(--width) * -0.0175) calc(var(--width) * 0.0175) var(--dispersion) var(--button-color-reflexion) inset;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.lg-btn:active {
|
|
129
|
+
box-shadow:
|
|
130
|
+
calc(var(--width) * -0.005) calc(var(--width) * 0.005) var(--dispersion) var(--color-shadow),
|
|
131
|
+
calc(var(--width) * -0.004) calc(var(--width) * 0.004) var(--dispersion) var(--button-color-reflexion) inset;
|
|
132
|
+
transform: translateX(calc(var(--width) * -0.0075)) translateY(calc(var(--width) * 0.0075));
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.sm-btn-p,
|
|
136
|
+
.btn-p,
|
|
137
|
+
.lg-btn-p {
|
|
138
|
+
font-family: 'retro-gamming';
|
|
139
|
+
color: white;
|
|
140
|
+
text-align: center;
|
|
141
|
+
|
|
142
|
+
user-select: none;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.sm-btn-container,
|
|
146
|
+
.btn-container,
|
|
147
|
+
.lg-btn-container {
|
|
148
|
+
display: flex;
|
|
149
|
+
justify-content: center;
|
|
150
|
+
align-items: center;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.sm-btn,
|
|
154
|
+
.btn,
|
|
155
|
+
.lg-btn {
|
|
156
|
+
outline: none;
|
|
157
|
+
|
|
158
|
+
border-radius: 50%;
|
|
159
|
+
border: var(--button-border);
|
|
160
|
+
|
|
161
|
+
transition-property: transform box-shadow;
|
|
162
|
+
transition-duration: var(--button-animation-duration);
|
|
163
|
+
|
|
164
|
+
background-color: var(--button-color);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.sm-btn-container {
|
|
168
|
+
flex-direction: column;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.sm-btn {
|
|
172
|
+
width: var(--sm-button-size);
|
|
173
|
+
height: var(--sm-button-size);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.sm-btn-p {
|
|
177
|
+
font-family: 'retro-gamming';
|
|
178
|
+
color: white;
|
|
179
|
+
text-align: center;
|
|
180
|
+
|
|
181
|
+
user-select: none;
|
|
182
|
+
|
|
183
|
+
font-size: calc(var(--width) * 0.03);
|
|
184
|
+
|
|
185
|
+
/* width: calc(var(--width) * 0.08); */
|
|
186
|
+
margin-top: calc(var(--width) * 0.01);
|
|
187
|
+
|
|
188
|
+
line-height: calc(var(--width) * 0.03);
|
|
189
|
+
height: calc(var(--width) * 0.06);
|
|
190
|
+
|
|
191
|
+
text-shadow:
|
|
192
|
+
calc(var(--width) * -0.003) calc(var(--width) * 0.003) 0 var(--color-shadow),
|
|
193
|
+
calc(var(--width) * 0.002) calc(var(--width) * -0.002) 0 var(--color-shadow-reflexion);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.btn-container {
|
|
197
|
+
flex-direction: column-reverse;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.btn {
|
|
201
|
+
width: var(--button-size);
|
|
202
|
+
height: var(--button-size);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.btn-p {
|
|
206
|
+
font-weight: bold;
|
|
207
|
+
font-size: calc(var(--width) * 0.04);
|
|
208
|
+
margin-bottom: calc(var(--width) * 0.015);
|
|
209
|
+
line-height: calc(var(--width) * 0.03);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.lg-btn-container {
|
|
213
|
+
flex-direction: column;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.lg-btn {
|
|
217
|
+
width: var(--lg-button-size);
|
|
218
|
+
height: var(--lg-button-size);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.lg-btn-p {
|
|
222
|
+
font-weight: bold;
|
|
223
|
+
font-size: calc(var(--width) * 0.05);
|
|
224
|
+
margin-bottom: calc(var(--width) * 0.015);
|
|
225
|
+
line-height: calc(var(--width) * 0.03);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.btn,
|
|
229
|
+
.lg-btn {
|
|
230
|
+
font-family: 'retro-gamming';
|
|
231
|
+
font-size: calc(var(--width) * 0.045);
|
|
232
|
+
font-weight: bold;
|
|
233
|
+
color: white;
|
|
234
|
+
text-shadow:
|
|
235
|
+
calc(var(--width) * -0.003) calc(var(--width) * 0.003) 0 var(--button-color-shadow),
|
|
236
|
+
calc(var(--width) * 0.002) calc(var(--width) * -0.002) 0 var(--button-color-reflexion);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/* BUTTON CONTAINERS */
|
|
240
|
+
|
|
241
|
+
#button-container,
|
|
242
|
+
#small-button-container,
|
|
243
|
+
#inner-button-container,
|
|
244
|
+
#medium-button-container,
|
|
245
|
+
#large-button-container {
|
|
246
|
+
width: 100%;
|
|
247
|
+
height: auto;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
#button-container {
|
|
251
|
+
display: flex;
|
|
252
|
+
flex-grow: 1;
|
|
253
|
+
flex-direction: column;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
#small-button-container {
|
|
257
|
+
display: flex;
|
|
258
|
+
flex-grow: 0.1;
|
|
259
|
+
justify-content: space-evenly;
|
|
260
|
+
|
|
261
|
+
max-height: 150px;
|
|
262
|
+
|
|
263
|
+
position: relative;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.sm-btn-container-top {
|
|
267
|
+
position: relative;
|
|
268
|
+
top: -20%;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.sm-btn-container-bottom {
|
|
272
|
+
position: relative;
|
|
273
|
+
bottom: -20%;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
#inner-button-container {
|
|
277
|
+
display: flex;
|
|
278
|
+
flex-grow: 1;
|
|
279
|
+
flex-direction: row;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
#medium-button-container {
|
|
283
|
+
display: flex;
|
|
284
|
+
flex-shrink: 1;
|
|
285
|
+
|
|
286
|
+
position: relative;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
#large-button-container {
|
|
290
|
+
display: flex;
|
|
291
|
+
justify-content: center;
|
|
292
|
+
align-items: center;
|
|
293
|
+
|
|
294
|
+
flex-shrink: 1.5;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
#direction-vertical-container,
|
|
298
|
+
#direction-horizontal-container {
|
|
299
|
+
width: 100%;
|
|
300
|
+
height: 100%;
|
|
301
|
+
|
|
302
|
+
display: flex;
|
|
303
|
+
justify-content: center;
|
|
304
|
+
align-items: center;
|
|
305
|
+
gap: calc(var(--width) * 0.115);
|
|
306
|
+
|
|
307
|
+
position: absolute;
|
|
308
|
+
top: 0;
|
|
309
|
+
bottom: 0;
|
|
310
|
+
left: 0;
|
|
311
|
+
right: 0;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
#direction-vertical-container {
|
|
315
|
+
flex-direction: column;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
#direction-horizontal-container {
|
|
319
|
+
flex-direction: row;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
#debugger {
|
|
323
|
+
font-family: 'retro-gamming', monospace;
|
|
324
|
+
background-color: rgba(0, 0, 0, 0.9);
|
|
325
|
+
color: #0f0; /* Green phosphor */
|
|
326
|
+
border: 2px solid #0f0;
|
|
327
|
+
box-shadow: 0 0 10px #0f0;
|
|
328
|
+
padding: 10px;
|
|
329
|
+
position: absolute;
|
|
330
|
+
top: 10px;
|
|
331
|
+
right: 10px;
|
|
332
|
+
width: 300px;
|
|
333
|
+
max-height: calc(100vh - 40px);
|
|
334
|
+
overflow-y: auto;
|
|
335
|
+
user-select: none;
|
|
336
|
+
-webkit-user-select: none;
|
|
337
|
+
z-index: 9999;
|
|
338
|
+
font-size: 14px;
|
|
339
|
+
/* text-shadow: 0 0 2px #0f0; */
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/* Custom Scrollbar */
|
|
343
|
+
#debugger::-webkit-scrollbar {
|
|
344
|
+
width: 8px;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
#debugger::-webkit-scrollbar-track {
|
|
348
|
+
background: #001100;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
#debugger::-webkit-scrollbar-thumb {
|
|
352
|
+
background: #0f0;
|
|
353
|
+
border-radius: 4px;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
#debugger::-webkit-scrollbar-thumb:hover {
|
|
357
|
+
background: #0a0;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/* Summary / Header */
|
|
361
|
+
#debugger-summary {
|
|
362
|
+
font-weight: bold;
|
|
363
|
+
font-size: 16px;
|
|
364
|
+
cursor: pointer;
|
|
365
|
+
margin-bottom: 10px;
|
|
366
|
+
/* text-transform: uppercase; */
|
|
367
|
+
border-bottom: 1px dashed #0f0;
|
|
368
|
+
padding-bottom: 5px;
|
|
369
|
+
list-style: none;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/* Module Sections */
|
|
373
|
+
.debugger-module {
|
|
374
|
+
margin-bottom: 10px;
|
|
375
|
+
border-left: 1px solid #004400;
|
|
376
|
+
padding-left: 8px;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.debugger-module-summary {
|
|
380
|
+
cursor: pointer;
|
|
381
|
+
font-weight: bold;
|
|
382
|
+
color: #cfc;
|
|
383
|
+
margin-bottom: 4px;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.debugger-module-summary:hover {
|
|
387
|
+
color: #fff;
|
|
388
|
+
/* text-shadow: 0 0 4px #fff; */
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/* Data Rows */
|
|
392
|
+
.debugger-container {
|
|
393
|
+
display: flex;
|
|
394
|
+
justify-content: space-between;
|
|
395
|
+
padding: 2px 0;
|
|
396
|
+
border-bottom: 1px dotted #003300;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/* Closed State */
|
|
400
|
+
#debugger:not([open]) {
|
|
401
|
+
width: auto;
|
|
402
|
+
height: auto;
|
|
403
|
+
max-height: none;
|
|
404
|
+
padding: 5px 10px;
|
|
405
|
+
border: 1px solid #0f0;
|
|
406
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
407
|
+
box-shadow: none;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
#debugger:not([open]) #debugger-summary {
|
|
411
|
+
margin-bottom: 0;
|
|
412
|
+
border-bottom: none;
|
|
413
|
+
padding-bottom: 0;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.debugger-container:hover {
|
|
417
|
+
background-color: rgba(0, 255, 0, 0.05);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.debugger-container.highlight {
|
|
421
|
+
background-color: transparent;
|
|
422
|
+
color: #fff;
|
|
423
|
+
/* text-shadow: 0 0 5px #fff; */
|
|
424
|
+
border-bottom: 1px solid #fff;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.debugger-container.highlight span {
|
|
428
|
+
color: #fff;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.debugger-container p {
|
|
432
|
+
margin: 0;
|
|
433
|
+
opacity: 0.8;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.debugger-container span {
|
|
437
|
+
font-weight: bold;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
#modal-background {
|
|
441
|
+
position: absolute;
|
|
442
|
+
inset: 0;
|
|
443
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
444
|
+
z-index: 999;
|
|
445
|
+
display: flex;
|
|
446
|
+
justify-content: center;
|
|
447
|
+
align-items: center;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
#modal-background.hidden {
|
|
451
|
+
display: none;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
#session-modal {
|
|
455
|
+
width: 80%;
|
|
456
|
+
max-width: 500px;
|
|
457
|
+
height: 44%;
|
|
458
|
+
max-height: 360px;
|
|
459
|
+
min-width: 320px;
|
|
460
|
+
min-height: 280px;
|
|
461
|
+
position: relative;
|
|
462
|
+
overflow: hidden;
|
|
463
|
+
|
|
464
|
+
display: flex;
|
|
465
|
+
flex-direction: column;
|
|
466
|
+
align-items: center;
|
|
467
|
+
box-sizing: border-box;
|
|
468
|
+
padding: 1rem 0;
|
|
469
|
+
|
|
470
|
+
background-color: var(--main-color);
|
|
471
|
+
|
|
472
|
+
border-radius: var(--border-radius);
|
|
473
|
+
border: var(--border);
|
|
474
|
+
|
|
475
|
+
box-shadow:
|
|
476
|
+
calc(var(--width) * -0.03) calc(var(--width) * 0.03) var(--dispersion) black,
|
|
477
|
+
calc(var(--width) * -0.02) calc(var(--width) * 0.02) var(--dispersion) var(--color-shadow-reflexion) inset,
|
|
478
|
+
calc(var(--width) * 0.01) calc(var(--width) * -0.01) var(--dispersion) var(--color-shadow) inset;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
#session-modal-frame {
|
|
482
|
+
border: var(--border);
|
|
483
|
+
border-radius: var(--border-radius);
|
|
484
|
+
|
|
485
|
+
position: relative;
|
|
486
|
+
|
|
487
|
+
width: 90%;
|
|
488
|
+
flex: 1;
|
|
489
|
+
margin: 1rem 0;
|
|
490
|
+
min-height: 0;
|
|
491
|
+
|
|
492
|
+
display: flex;
|
|
493
|
+
justify-content: center;
|
|
494
|
+
align-items: center;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
#session-modal-frame > p {
|
|
498
|
+
position: absolute;
|
|
499
|
+
top: 0;
|
|
500
|
+
transform: translateY(-50%);
|
|
501
|
+
|
|
502
|
+
text-align: center;
|
|
503
|
+
|
|
504
|
+
font-family: 'retro-gamming';
|
|
505
|
+
font-weight: bold;
|
|
506
|
+
font-size: clamp(1rem, calc(var(--height) * 0.03), 1.4rem);
|
|
507
|
+
|
|
508
|
+
background-color: var(--main-color);
|
|
509
|
+
padding: 0 calc(var(--width) * 0.02);
|
|
510
|
+
|
|
511
|
+
text-shadow:
|
|
512
|
+
calc(var(--width) * -0.003) calc(var(--width) * 0.003) 0 var(--color-shadow),
|
|
513
|
+
calc(var(--width) * 0.002) calc(var(--width) * -0.002) 0 var(--color-shadow-reflexion);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
#session-modal-screen {
|
|
517
|
+
width: 90%;
|
|
518
|
+
height: 80%;
|
|
519
|
+
|
|
520
|
+
border: var(--border);
|
|
521
|
+
box-shadow:
|
|
522
|
+
calc(var(--width) * -0.01) calc(var(--width) * 0.01) var(--dispersion) var(--color-shadow),
|
|
523
|
+
calc(var(--width) * 0.01) calc(var(--width) * -0.01) var(--dispersion) var(--color-shadow-reflexion);
|
|
524
|
+
|
|
525
|
+
background-image: url(../8e23286c2fdf41fd795f.svg);
|
|
526
|
+
background-size: 3.7%;
|
|
527
|
+
background-repeat: repeat;
|
|
528
|
+
|
|
529
|
+
display: flex;
|
|
530
|
+
justify-content: center;
|
|
531
|
+
align-items: center;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
#session-modal-screen > p {
|
|
535
|
+
text-align: center;
|
|
536
|
+
|
|
537
|
+
font-family: 'retro-gamming';
|
|
538
|
+
font-size: 1.5rem;
|
|
539
|
+
|
|
540
|
+
padding: 0 calc(var(--width) * 0.02);
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
#session-modal-screen > p > span {
|
|
544
|
+
font-size: 1.8rem;
|
|
545
|
+
padding: 0 calc(var(--width) * 0.02);
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
#session-modal-buttons {
|
|
549
|
+
width: 100%;
|
|
550
|
+
padding-bottom: 0.5rem;
|
|
551
|
+
|
|
552
|
+
display: flex;
|
|
553
|
+
justify-content: center;
|
|
554
|
+
align-items: center;
|
|
555
|
+
|
|
556
|
+
gap: clamp(1rem, 5vw, 2.5rem);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
.session-modal-button:active {
|
|
560
|
+
box-shadow:
|
|
561
|
+
calc(var(--width) * -0.005) calc(var(--width) * 0.005) var(--dispersion) var(--color-shadow),
|
|
562
|
+
calc(var(--width) * -0.004) calc(var(--width) * 0.004) var(--dispersion) var(--button-color-reflexion) inset;
|
|
563
|
+
transform: translate(calc(var(--width) * -0.005), calc(var(--width) * 0.005));
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
.session-modal-button {
|
|
567
|
+
width: 35%;
|
|
568
|
+
max-width: 150px;
|
|
569
|
+
padding: 0.8rem 0;
|
|
570
|
+
|
|
571
|
+
border: var(--border);
|
|
572
|
+
border-radius: var(--border-radius);
|
|
573
|
+
|
|
574
|
+
background-color: var(--button-color);
|
|
575
|
+
box-shadow:
|
|
576
|
+
calc(var(--width) * -0.015) calc(var(--width) * 0.015) var(--dispersion) var(--color-shadow),
|
|
577
|
+
calc(var(--width) * -0.0175) calc(var(--width) * 0.0175) var(--dispersion) var(--button-color-reflexion) inset;
|
|
578
|
+
|
|
579
|
+
font-family: 'retro-gamming';
|
|
580
|
+
color: white;
|
|
581
|
+
text-align: center;
|
|
582
|
+
|
|
583
|
+
user-select: none;
|
|
584
|
+
|
|
585
|
+
font-size: 1rem;
|
|
586
|
+
|
|
587
|
+
text-shadow:
|
|
588
|
+
calc(var(--width) * -0.003) calc(var(--width) * 0.003) 0 var(--button-color-shadow),
|
|
589
|
+
calc(var(--width) * 0.002) calc(var(--width) * -0.002) 0 var(--button-color-reflexion);
|
|
590
|
+
|
|
591
|
+
transition:
|
|
592
|
+
transform var(--button-animation-duration),
|
|
593
|
+
box-shadow var(--button-animation-duration);
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
#source-code {
|
|
597
|
+
position: absolute;
|
|
598
|
+
top: 2%;
|
|
599
|
+
right: 2%;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
#controls {
|
|
603
|
+
position: absolute;
|
|
604
|
+
top: 2%;
|
|
605
|
+
left: 2%;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
#source-code,
|
|
609
|
+
#controls {
|
|
610
|
+
background-color: var(--main-color);
|
|
611
|
+
padding: 0.75rem;
|
|
612
|
+
border-radius: 1.5rem;
|
|
613
|
+
cursor: pointer;
|
|
614
|
+
box-sizing: content-box;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
#source-code > #source-code-button,
|
|
618
|
+
#controls > #controls-button {
|
|
619
|
+
display: flex;
|
|
620
|
+
justify-content: center;
|
|
621
|
+
align-items: center;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
#source-code > #source-code-button > img,
|
|
625
|
+
#controls > #controls-button > img {
|
|
626
|
+
width: 2.5rem;
|
|
627
|
+
filter: invert();
|
|
628
|
+
}
|
|
629
|
+
#source-code:hover,
|
|
630
|
+
#controls:hover {
|
|
631
|
+
background-color: var(--color-shadow-reflexion);
|
|
632
|
+
}
|
|
633
|
+
#source-code:active,
|
|
634
|
+
#controls:active {
|
|
635
|
+
filter: brightness(1.15);
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
#source-code::after,
|
|
639
|
+
#controls::after {
|
|
640
|
+
font-family: 'retro-gamming';
|
|
641
|
+
padding: 0.5rem;
|
|
642
|
+
width: 6rem;
|
|
643
|
+
background-color: white;
|
|
644
|
+
text-align: center;
|
|
645
|
+
border-radius: 0.25rem;
|
|
646
|
+
border: 1px black solid;
|
|
647
|
+
box-shadow: 0.25rem 0.25rem black;
|
|
648
|
+
opacity: 0;
|
|
649
|
+
transition: 0.25s opacity;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
#source-code:hover::after,
|
|
653
|
+
#controls:hover::after {
|
|
654
|
+
opacity: 1;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
#source-code::after {
|
|
658
|
+
content: 'source code';
|
|
659
|
+
position: absolute;
|
|
660
|
+
top: 75px;
|
|
661
|
+
left: -65px;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
#controls::after {
|
|
665
|
+
content: 'Controls';
|
|
666
|
+
position: absolute;
|
|
667
|
+
top: 75px;
|
|
668
|
+
left: 15px;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
#splash {
|
|
672
|
+
position: absolute;
|
|
673
|
+
top: 0;
|
|
674
|
+
left: 0;
|
|
675
|
+
right: 0;
|
|
676
|
+
bottom: 0;
|
|
677
|
+
background-color: black;
|
|
678
|
+
opacity: 0.85;
|
|
679
|
+
z-index: 1000;
|
|
680
|
+
display: flex;
|
|
681
|
+
justify-content: center;
|
|
682
|
+
align-items: center;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
@font-face {
|
|
686
|
+
font-family: retro-gamming;
|
|
687
|
+
src: url(../fonts/digital-7.monoitalic.ttf);
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
* {
|
|
691
|
+
margin: 0;
|
|
692
|
+
padding: 0;
|
|
693
|
+
box-sizing: content-box;
|
|
694
|
+
user-select: none;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
body {
|
|
698
|
+
width: 100vw;
|
|
699
|
+
height: 100vh;
|
|
700
|
+
|
|
701
|
+
display: flex;
|
|
702
|
+
justify-content: center;
|
|
703
|
+
align-items: center;
|
|
704
|
+
|
|
705
|
+
background: rgb(0, 158, 247);
|
|
706
|
+
background: linear-gradient(300deg, rgb(48, 179, 255) 0%, rgba(0, 158, 247, 1) 100%);
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
#version {
|
|
710
|
+
font-family: 'retro-gamming';
|
|
711
|
+
font-size: 1rem;
|
|
712
|
+
color: white;
|
|
713
|
+
position: absolute;
|
|
714
|
+
bottom: 1rem;
|
|
715
|
+
right: 1rem;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
@media only screen and (max-width: 600px) {
|
|
719
|
+
#source-code,
|
|
720
|
+
#controls {
|
|
721
|
+
display: none;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
body,
|
|
725
|
+
#container {
|
|
726
|
+
width: 100% !important;
|
|
727
|
+
height: 100vh !important;
|
|
728
|
+
/* height: 100dvh !important; */
|
|
729
|
+
border-radius: 0px !important;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
#frame > canvas {
|
|
733
|
+
width: 85% !important;
|
|
734
|
+
height: auto !important;
|
|
735
|
+
aspect-ratio: 9/10 !important;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
#frame {
|
|
739
|
+
width: 85% !important;
|
|
740
|
+
padding: 7.5%¨ !important;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
#small-button-container {
|
|
744
|
+
margin-top: 3.5%;
|
|
745
|
+
}
|
|
746
|
+
#direction-vertical-container,
|
|
747
|
+
#direction-horizontal-container {
|
|
748
|
+
gap: calc(var(--width) * 0.13);
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
#large-button-container {
|
|
752
|
+
flex-shrink: 1.75;
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
.sm-btn {
|
|
756
|
+
width: var(--sm-button-size-mobile) !important;
|
|
757
|
+
height: var(--sm-button-size-mobile) !important;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
.btn {
|
|
761
|
+
width: var(--button-size-mobile) !important;
|
|
762
|
+
height: var(--button-size-mobile) !important;
|
|
763
|
+
margin: var(--button-size-mobile-spacing) !important;
|
|
764
|
+
font-size: var(--button-size-mobile-font-size) !important;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
.lg-btn {
|
|
768
|
+
width: var(--lg-button-size-mobile) !important;
|
|
769
|
+
height: var(--lg-button-size-mobile) !important;
|
|
770
|
+
font-size: var(--lg-button-size-mobile-font-size) !important;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
.sm-btn-p {
|
|
774
|
+
font-size: var(--sm-button-size-mobile-font-size) !important;
|
|
775
|
+
line-height: var(--sm-button-size-mobile-line-height) !important;
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
@media only screen and (max-width: 990px) {
|
|
780
|
+
#wasd {
|
|
781
|
+
width: 10.5rem !important;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
.key {
|
|
785
|
+
width: 3rem !important;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
.key-description {
|
|
789
|
+
font-size: 1.5rem !important;
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
.command {
|
|
793
|
+
gap: 0.5rem !important;
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
@media only screen and (max-width: 815px) {
|
|
798
|
+
#controls-tutorial {
|
|
799
|
+
gap: 0rem;
|
|
800
|
+
flex-direction: column !important;
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
@media only screen and (max-width: 750px) {
|
|
805
|
+
.key-description {
|
|
806
|
+
font-size: 1.2rem !important;
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
@media only screen and (max-width: 650px) {
|
|
811
|
+
#wasd {
|
|
812
|
+
width: 9rem !important;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
.key {
|
|
816
|
+
width: 2.5rem !important;
|
|
817
|
+
}
|
|
818
|
+
.key-description {
|
|
819
|
+
font-size: 1rem !important;
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
/*# sourceMappingURL=app.743066d8e4172b0e73f9.css.map*/
|