willem-truyen-network-site/src/games-launcher.html

47 lines
1.3 KiB
HTML
Raw Normal View History

2024-08-03 13:05:18 +02:00
<!DOCTYPE html>
<html>
<head>
<title>Games collection</title>
<link rel="icon" type="image/x-icon" href="./favicon.ico">
<link rel="stylesheet" href="css/game.css">
<link rel="stylesheet" href="css/main.css">
<script src="term/wterminal.js"></script>
<script src="term/wterminal-autoextend.js"></script>
<script src="js/games-launcher.js"></script>
</head>
<body>
<header>
<button title="Dark theme on/off" onclick="toggleTheme();">&#9728;</button>
2024-08-03 13:05:18 +02:00
<a href="index.html">Willem Games</a>
</header>
<main>
<h1>Games collection</h1>
<div class="game-area" id="game-area">Choose a game below ...</div>
<!-- <button onclick="startPingPong('game-area', 480, 320, 1);">Start Pingpong</button> -->
<!-- <button onclick="startTetris('game-area', 300, 600, 1);">Start Tetris</button> -->
<script>
new GamesLauncher("game-area");
WTerminal.instalDropdownTerminal();
// startPingPong('game-area', 480, 320, 1); // startGame(element-id, width, height, zoom)
</script>
</main>
<footer>
<p class="float-right">Author: Ward Truyen</p>
</footer>
<script src="js/theme.js"></script>
2024-08-03 13:05:18 +02:00
<script src="js/game-pong-context2d.js"></script>
<script src="js/game-tetris-context2d.js"></script>
2024-08-14 00:43:08 +02:00
<script src="js/game-maze-context2d.js"></script>
2024-08-03 13:05:18 +02:00
</body>
</html>