Upload index.html with huggingface_hub
Browse files- index.html +123 -115
index.html
CHANGED
|
@@ -1,115 +1,123 @@
|
|
| 1 |
-
<!DOCTYPE html>
|
| 2 |
-
<html lang="en">
|
| 3 |
-
<head>
|
| 4 |
-
<meta charset="UTF-8">
|
| 5 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
| 6 |
-
<meta name="apple-mobile-web-app-capable" content="yes">
|
| 7 |
-
<meta name="mobile-web-app-capable" content="yes">
|
| 8 |
-
<title>🕹️ Retro Arcade — Mobile Games</title>
|
| 9 |
-
<link rel="stylesheet" href="styles.css">
|
| 10 |
-
</head>
|
| 11 |
-
<body>
|
| 12 |
-
<header class="site-header">
|
| 13 |
-
<div class="container">
|
| 14 |
-
<div class="brand">
|
| 15 |
-
<h1>🕹️ RETRO ARCADE</h1>
|
| 16 |
-
<p class="tagline">Classic games you can play right in your browser</p>
|
| 17 |
-
</div>
|
| 18 |
-
</div>
|
| 19 |
-
</header>
|
| 20 |
-
|
| 21 |
-
<main class="container">
|
| 22 |
-
<div class="games-grid">
|
| 23 |
-
|
| 24 |
-
<div class="game-card" onclick="openGame('snake')">
|
| 25 |
-
<div class="game-icon">🐍</div>
|
| 26 |
-
<h2>Snake</h2>
|
| 27 |
-
<p>The classic. Eat food, grow longer, don't hit the walls!</p>
|
| 28 |
-
<span class="play-btn">▶ Play</span>
|
| 29 |
-
</div>
|
| 30 |
-
|
| 31 |
-
<div class="game-card" onclick="openGame('tetris')">
|
| 32 |
-
<div class="game-icon">🧱</div>
|
| 33 |
-
<h2>Tetris</h2>
|
| 34 |
-
<p>Fit the falling blocks. Clear lines. Don't stack too high!</p>
|
| 35 |
-
<span class="play-btn">▶ Play</span>
|
| 36 |
-
</div>
|
| 37 |
-
|
| 38 |
-
<div class="game-card" onclick="openGame('pong')">
|
| 39 |
-
<div class="game-icon">🏓</div>
|
| 40 |
-
<h2>Pong</h2>
|
| 41 |
-
<p>The original video game. Beat the computer!</p>
|
| 42 |
-
<span class="play-btn">▶ Play</span>
|
| 43 |
-
</div>
|
| 44 |
-
|
| 45 |
-
<div class="game-card" onclick="openGame('breakout')">
|
| 46 |
-
<div class="game-icon">🧱</div>
|
| 47 |
-
<h2>Breakout</h2>
|
| 48 |
-
<p>Break all the bricks with your paddle and ball.</p>
|
| 49 |
-
<span class="play-btn">▶ Play</span>
|
| 50 |
-
</div>
|
| 51 |
-
|
| 52 |
-
<div class="game-card" onclick="openGame('dino')">
|
| 53 |
-
<div class="game-icon">🦕</div>
|
| 54 |
-
<h2>Chrome Dino</h2>
|
| 55 |
-
<p>The famous offline dinosaur game. Jump cacti!</p>
|
| 56 |
-
<span class="play-btn">▶ Play</span>
|
| 57 |
-
</div>
|
| 58 |
-
|
| 59 |
-
<div class="game-card" onclick="openGame('invaders')">
|
| 60 |
-
<div class="game-icon">👾</div>
|
| 61 |
-
<h2>Space Invaders</h2>
|
| 62 |
-
<p>Classic arcade shooter. Defend Earth from alien invasion!</p>
|
| 63 |
-
<span class="play-btn">▶ Play</span>
|
| 64 |
-
</div>
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
<
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
<
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
<
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
<
|
| 110 |
-
</div>
|
| 111 |
-
</
|
| 112 |
-
|
| 113 |
-
<
|
| 114 |
-
<
|
| 115 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
| 6 |
+
<meta name="apple-mobile-web-app-capable" content="yes">
|
| 7 |
+
<meta name="mobile-web-app-capable" content="yes">
|
| 8 |
+
<title>🕹️ Retro Arcade — Mobile Games</title>
|
| 9 |
+
<link rel="stylesheet" href="styles.css">
|
| 10 |
+
</head>
|
| 11 |
+
<body>
|
| 12 |
+
<header class="site-header">
|
| 13 |
+
<div class="container">
|
| 14 |
+
<div class="brand">
|
| 15 |
+
<h1>🕹️ RETRO ARCADE</h1>
|
| 16 |
+
<p class="tagline">Classic games you can play right in your browser</p>
|
| 17 |
+
</div>
|
| 18 |
+
</div>
|
| 19 |
+
</header>
|
| 20 |
+
|
| 21 |
+
<main class="container">
|
| 22 |
+
<div class="games-grid">
|
| 23 |
+
|
| 24 |
+
<div class="game-card" onclick="openGame('snake')">
|
| 25 |
+
<div class="game-icon">🐍</div>
|
| 26 |
+
<h2>Snake</h2>
|
| 27 |
+
<p>The classic. Eat food, grow longer, don't hit the walls!</p>
|
| 28 |
+
<span class="play-btn">▶ Play</span>
|
| 29 |
+
</div>
|
| 30 |
+
|
| 31 |
+
<div class="game-card" onclick="openGame('tetris')">
|
| 32 |
+
<div class="game-icon">🧱</div>
|
| 33 |
+
<h2>Tetris</h2>
|
| 34 |
+
<p>Fit the falling blocks. Clear lines. Don't stack too high!</p>
|
| 35 |
+
<span class="play-btn">▶ Play</span>
|
| 36 |
+
</div>
|
| 37 |
+
|
| 38 |
+
<div class="game-card" onclick="openGame('pong')">
|
| 39 |
+
<div class="game-icon">🏓</div>
|
| 40 |
+
<h2>Pong</h2>
|
| 41 |
+
<p>The original video game. Beat the computer!</p>
|
| 42 |
+
<span class="play-btn">▶ Play</span>
|
| 43 |
+
</div>
|
| 44 |
+
|
| 45 |
+
<div class="game-card" onclick="openGame('breakout')">
|
| 46 |
+
<div class="game-icon">🧱</div>
|
| 47 |
+
<h2>Breakout</h2>
|
| 48 |
+
<p>Break all the bricks with your paddle and ball.</p>
|
| 49 |
+
<span class="play-btn">▶ Play</span>
|
| 50 |
+
</div>
|
| 51 |
+
|
| 52 |
+
<div class="game-card" onclick="openGame('dino')">
|
| 53 |
+
<div class="game-icon">🦕</div>
|
| 54 |
+
<h2>Chrome Dino</h2>
|
| 55 |
+
<p>The famous offline dinosaur game. Jump cacti!</p>
|
| 56 |
+
<span class="play-btn">▶ Play</span>
|
| 57 |
+
</div>
|
| 58 |
+
|
| 59 |
+
<div class="game-card" onclick="openGame('invaders')">
|
| 60 |
+
<div class="game-icon">👾</div>
|
| 61 |
+
<h2>Space Invaders</h2>
|
| 62 |
+
<p>Classic arcade shooter. Defend Earth from alien invasion!</p>
|
| 63 |
+
<span class="play-btn">▶ Play</span>
|
| 64 |
+
</div>
|
| 65 |
+
|
| 66 |
+
<div class="game-card" onclick="openGame('chess')">
|
| 67 |
+
<div class="game-icon">♟️</div>
|
| 68 |
+
<h2>Chess</h2>
|
| 69 |
+
<p>Classic strategy game. Outsmart your opponent!</p>
|
| 70 |
+
<span class="play-btn">▶ Play</span>
|
| 71 |
+
</div>
|
| 72 |
+
|
| 73 |
+
</div>
|
| 74 |
+
</main>
|
| 75 |
+
|
| 76 |
+
<!-- Game Modal -->
|
| 77 |
+
<div id="gameModal" class="modal">
|
| 78 |
+
<div class="modal-content">
|
| 79 |
+
<span class="close" onclick="closeGame()">×</span>
|
| 80 |
+
<h2 id="gameTitle">Game</h2>
|
| 81 |
+
<canvas id="gameCanvas"></canvas>
|
| 82 |
+
|
| 83 |
+
<!-- Mobile Touch Controls -->
|
| 84 |
+
<div id="mobileControls" class="mobile-controls">
|
| 85 |
+
<!-- Snake/Tetris D-Pad -->
|
| 86 |
+
<div id="dpad" class="dpad" style="display:none;">
|
| 87 |
+
<div class="dpad-row">
|
| 88 |
+
<button class="dpad-btn" id="btnUp">▲</button>
|
| 89 |
+
</div>
|
| 90 |
+
<div class="dpad-row">
|
| 91 |
+
<button class="dpad-btn" id="btnLeft">◀</button>
|
| 92 |
+
<button class="dpad-btn" id="btnDown">▼</button>
|
| 93 |
+
<button class="dpad-btn" id="btnRight">▶</button>
|
| 94 |
+
</div>
|
| 95 |
+
</div>
|
| 96 |
+
|
| 97 |
+
<!-- Action Buttons -->
|
| 98 |
+
<div id="actionButtons" class="action-buttons" style="display:none;">
|
| 99 |
+
<button class="action-btn" id="btnAction">JUMP / ACTION</button>
|
| 100 |
+
</div>
|
| 101 |
+
|
| 102 |
+
<!-- Memory Game Grid (touch areas) -->
|
| 103 |
+
<div id="memoryTouch" class="memory-touch" style="display:none;"></div>
|
| 104 |
+
</div>
|
| 105 |
+
|
| 106 |
+
<div class="game-controls">
|
| 107 |
+
<p id="gameInstructions">Use arrow keys to play</p>
|
| 108 |
+
<button onclick="resetGame()">↻ Restart</button>
|
| 109 |
+
</div>
|
| 110 |
+
</div>
|
| 111 |
+
</div>
|
| 112 |
+
|
| 113 |
+
<footer class="site-footer">
|
| 114 |
+
<div class="container">
|
| 115 |
+
<p>Retro Arcade — Built with HTML5 Canvas & JavaScript</p>
|
| 116 |
+
<p>No downloads required. Works on desktop and mobile.</p>
|
| 117 |
+
</div>
|
| 118 |
+
</footer>
|
| 119 |
+
|
| 120 |
+
<script src="chess.js?v=1"></script>
|
| 121 |
+
<script src="games.js?v=4"></script>
|
| 122 |
+
</body>
|
| 123 |
+
</html>
|