47 lines
1.3 KiB
HTML
47 lines
1.3 KiB
HTML
<!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();">☀</button>
|
|
<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>
|
|
<script src="js/game-pong-context2d.js"></script>
|
|
<script src="js/game-tetris-context2d.js"></script>
|
|
<script src="js/game-maze-context2d.js"></script>
|
|
</body>
|
|
|
|
</html>
|