72 lines
3.7 KiB
HTML
72 lines
3.7 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<link rel="icon" href="./favicon.svg" type="image/svg+xml" />
|
|
<title>Pelican on a Bike — Advent of AI Slop Day 5</title>
|
|
<meta name="description" content="An endless winter-city ride: a pelican on a bicycle (or a reindeer on a unicycle) hopping potholes, ducking garlands and collecting fish through a procedurally drawn Christmas skyline. Made for Advent of AI Slop Day 5." />
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:title" content="Pelican on a Bike — Advent of AI Slop Day 5" />
|
|
<meta property="og:description" content="Ride a pelican on a bicycle through a procedural winter city. Jump the snowmen, duck the garlands, collect the fish. Or switch to the reindeer on a unicycle." />
|
|
<meta property="og:url" content="https://pages.obahan.xyz/lullu/advent-of-slop-05-pelican-on-a-bike/" />
|
|
<meta property="og:image" content="https://pages.obahan.xyz/lullu/advent-of-slop-05-pelican-on-a-bike/preview.png" />
|
|
<meta name="twitter:card" content="summary_large_image" />
|
|
<script type="module" crossorigin src="./assets/index-DNxsEv3Z.js"></script>
|
|
<link rel="stylesheet" crossorigin href="./assets/index-DDcEXbo8.css">
|
|
</head>
|
|
<body>
|
|
<!-- day: the day of December this was made for, 1 to 24. name: the title of that day. -->
|
|
<advent-badge day="5" name="Pelican on a bike"></advent-badge>
|
|
<main id="app">
|
|
<header>
|
|
<h1>Pelican on a Bike</h1>
|
|
<p class="tagline">an endless ride through a very Danish winter city</p>
|
|
</header>
|
|
<div id="hud">
|
|
<span class="chip">score <b id="hud-score">0</b></span>
|
|
<span class="chip">distance <b id="hud-dist">0</b> m</span>
|
|
<span class="chip">speed <b id="hud-speed">0</b> km/t</span>
|
|
<span class="chip">fish <b id="hud-fish">0</b></span>
|
|
<span class="chip best">best <b id="hud-best">0</b></span>
|
|
</div>
|
|
<div id="stage">
|
|
<canvas id="game" width="1200" height="600"></canvas>
|
|
<div id="menu" class="overlay">
|
|
<div class="panel">
|
|
<h2>Pick your rider</h2>
|
|
<div id="cards">
|
|
<button class="card" id="card-pelican" data-char="pelican">
|
|
<span class="glyph">🪿🚲</span>
|
|
<b>Pelican on a bike</b>
|
|
<small>one big flap-jump, top speed 45 km/t</small>
|
|
</button>
|
|
<button class="card" id="card-reindeer" data-char="reindeer">
|
|
<span class="glyph">🦌🎪</span>
|
|
<b>Reindeer on a unicycle</b>
|
|
<small>double jump, steadier pace, antlers optional</small>
|
|
</button>
|
|
</div>
|
|
<p class="controls">
|
|
<kbd>Space</kbd>/<kbd>↑</kbd>/tap to jump · <kbd>↓</kbd> to duck · <kbd>P</kbd> pause · <kbd>R</kbd> restart
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div id="pause" class="overlay hidden">
|
|
<div class="panel"><h2>Paused</h2><p class="controls">press <kbd>P</kbd> to keep riding</p></div>
|
|
</div>
|
|
<div id="gameover" class="overlay hidden">
|
|
<div class="panel">
|
|
<h2 id="crash-line">Squawk.</h2>
|
|
<p class="score-line">score <b id="final-score">0</b> · <span id="final-dist">0</span> m · <span id="final-fish">0</span> fish</p>
|
|
<p class="best-line" id="best-line"></p>
|
|
<button id="restart-btn">Ride again (R)</button>
|
|
<button id="menu-btn" class="ghost">Change rider</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<p class="hint">jump the snowmen · duck under the garlands · the fish are for later</p>
|
|
</main>
|
|
</body>
|
|
</html>
|