Skip to content

Commit

Permalink
try a splash screen
Browse files Browse the repository at this point in the history
  • Loading branch information
edloper committed Dec 8, 2024
1 parent a7686be commit 0ca54f1
Show file tree
Hide file tree
Showing 2 changed files with 248 additions and 232 deletions.
4 changes: 4 additions & 0 deletions game_fullscreen.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<script src="javascript/level_picker.js"></script>
<script src="javascript/colorpicker.js"></script>
<script src="javascript/level_urls.js"></script>
<script src="javascript/splashscreen.js"></script>
<script>
const MIN_WIDTH = 500;
const MAX_WIDTH = Math.min(1000, window.innerHeight - 250);
Expand All @@ -40,6 +41,8 @@

game = new Game(gameContainer, width, height);
const levelPicker = new LevelPicker(levelPickerContainer, game, LEVEL_URLS);

drawSplashscreen();
});
</script>

Expand Down Expand Up @@ -83,6 +86,7 @@
</style>
</head>
<body class="fullscreen" style>
<div id="splashscreen"></div>
<div id="levelPicker">
Testing 5
<img src="images/titles/title2.jpg" class="missingLinkTitle">
Expand Down
Loading

0 comments on commit 0ca54f1

Please sign in to comment.