Of course.
This isn't just a game; it's a glimpse into an atmospheric, minimalist, and emotionally resonant future of interactive experiences.
Presenting...
AETHERIUM: The Last Echo
You are the pilot of the AETHERIUM, a fragile vessel of pure light, the last of its kind. Your mission is to navigate the decaying void, collecting the final, fading Echoes of Memory before the universe succumbs to a silent, entropic cold. But beware, the void is not empty. Glitching Shards of Entropy are drawn to your light, seeking to extinguish it forever.
Key "Future of Gaming" Concepts Showcased:
- Diegetic UI: Your health, score, and objectives are integrated into the game world itself. Your ship is your health bar. The HUD is minimal and environmental.
- Atmospheric Gameplay: The experience is driven by mood, visuals, and a sense of place, not just twitch reflexes.
- Hybrid Mechanics: Seamlessly blends two distinct game modes: a tense "bullet-hell" survival phase and a calm, cerebral puzzle phase.
- Procedural Feel: The world feels alive and unpredictable, with dynamic particle physics and enemy behavior.
- Stunning Visuals: Achieved with pure CSS and Canvas, leveraging gradients, glows, particle systems, and screen effects to create a deep, immersive aesthetic.
Instructions: Just Save & Run
Save the entire block of code below as aetherium.html and open it in a modern web browser (like Chrome or Firefox). For the best experience, view it in full-screen (F11).
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AETHERIUM: The Last Echo</title>
<link href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;700&display=swap" rel="stylesheet">
<style>
:root {
--void-start: #010103;
--void-end: #100a1c;
--primary-glow: #00ffff;
--secondary-glow: #ff00c3;
--entropy-color: #ff3c3c;
--font-color: #d0d0ff;
--font-family: 'Rajdhani', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
width: 100%;
height: 100%;
overflow: hidden;
background: var(--void-start);
cursor: none;
}
#game-container {
position: relative;
width: 100%;
height: 100%;
background: radial-gradient(ellipse at center, var(--void-start) 0%, var(--void-end) 100%);
}
#game-canvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
}
.overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 10;
color: var(--font-color);
font-family: var(--font-family);
text-align: center;
background: rgba(1, 1, 3, 0.7);
backdrop-filter: blur(5px);
opacity: 0;
transition: opacity 1s ease-in-out;
pointer-events: none;
}
.overlay.visible {
opacity: 1;
pointer-events: all;
}
.overlay h1 {
font-size: 6rem;
font-weight: 700;
letter-spacing: 10px;
text-transform: uppercase;
text-shadow: 0 0 10px var(--primary-glow), 0 0 20px var(--primary-glow), 0 0 40px var(--secondary-glow);
animation: pulse-text 4s infinite ease-in-out;
}
.overlay p {
font-size: 1.5rem;
max-width: 600px;
margin: 2rem 0;
font-weight: 300;
line-height: 1.6;
}
.overlay button {
font-family: var(--font-family);
font-weight: 700;
font-size: 1.5rem;
text-transform: uppercase;
letter-spacing: 3px;
padding: 1rem 3rem;
border: 2px solid var(--primary-glow);
color: var(--primary-glow);
background: transparent;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 0 15px var(--primary-glow) inset;
}
.overlay button:hover {
background: var(--primary-glow);
color: var(--void-start);
box-shadow: 0 0 25px var(--primary-glow);
}
#hud {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 5;
pointer-events: none;
color: var(--font-color);
font-family: var(--font-family);
font-weight: 700;
}
#luminance-bar {
position: absolute;
bottom: 30px;
left: 50%;
transform: translateX(-50%);
width: 400px;
height: 10px;
border: 1px solid var(--primary-glow);
padding: 2px;
}
#luminance-fill {
width: 100%;
height: 100%;
background: var(--primary-glow);
box-shadow: 0 0 10px var(--primary-glow);
transition: width 0.5s ease;
}
#echo-counter {
position: absolute;
top: 30px;
right: 30px;
font-size: 2rem;
text-shadow: 0 0 10px var(--secondary-glow);
}
#resonance-matrix {
display: none; /* Controlled by JS */
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}
.resonance-node {
width: 100px;
height: 100px;
border: 2px solid rgba(0, 255, 255, 0.3);
background: rgba(0, 255, 255, 0.05);
display: flex;
justify-content: center;
align-items: center;
font-size: 3rem;
cursor: pointer;
transition: all 0.2s ease;
transform-style: preserve-3d;
}
.resonance-node:hover {
border-color: var(--primary-glow);
background: rgba(0, 255, 255, 0.2);
}
.resonance-node .symbol {
opacity: 0;
transition: opacity 0.2s;
text-shadow: 0 0 10px var(--primary-glow);
}
.resonance-node.flipped .symbol, .resonance-node.matched .symbol {
opacity: 1;
}
.resonance-node.matched {
border-color: var(--secondary-glow);
background: rgba(255, 0, 195, 0.2);
box-shadow: 0 0 20px var(--secondary-glow);
}
@keyframes pulse-text {
0%, 100% { transform: scale(1); text-shadow: 0 0 10px var(--primary-glow), 0 0 20px var(--primary-glow), 0 0 40px var(--secondary-glow); }
50% { transform: scale(1.02); text-shadow: 0 0 15px var(--primary-glow), 0 0 30px var(--primary-glow), 0 0 60px var(--secondary-glow); }
}
</style>
</head>
<body>
<div id="game-container">
<canvas id="game-canvas"></canvas>
<div id="hud">
<div id="echo-counter">ECHOES: 0 / 3</div>
<div id="luminance-bar">
<div id="luminance-fill"></div>
</div>
</div>
<div id="start-screen" class="overlay visible">
<h1>AETHERIUM</h1>
<p>You are the last light. Navigate the void with your mouse. Collect the Echoes of Memory to restore what was lost. Avoid the Shards of Entropy that hunger for your light.</p>
<button id="start-button">BEGIN</button>
</div>
<div id="resonance-screen" class="overlay">
<h1>RESONANCE</h1>
<p>An Echo resonates within you. Match the patterns to stabilize its memory.</p>
<div id="resonance-matrix"></div>
</div>
<div id="end-screen" class="overlay">
<h1 id="end-title"></h1>
<p id="end-message"></p>
<button id="restart-button">TRY AGAIN</button>
</div>
</div>
<script>
// --- SETUP ---
const canvas = document.getElementById('game-canvas');
const ctx = canvas.getContext('2d');
const container = document.getElementById('game-container');
const startScreen = document.getElementById('start-screen');
const resonanceScreen = document.getElementById('resonance-screen');
const endScreen = document.getElementById('end-screen');
const startButton = document.getElementById('start-button');
const restartButton = document.getElementById('restart-button');
const luminanceFill = document.getElementById('luminance-fill');
const echoCounterEl = document.getElementById('echo-counter');
const resonanceMatrix = document.getElementById('resonance-matrix');
let w, h;
const resize = () => {
w = canvas.width = container.clientWidth;
h = canvas.height = container.clientHeight;
};
window.addEventListener('resize', resize);
resize();
// --- GAME STATE & ENTITIES ---
let mouse = { x: w / 2, y: h / 2 };
let gameState = {
running: false,
mode: 'flight', // 'flight' or 'puzzle'
luminance: 100,
maxLuminance: 100,
echoesCollected: 0,
totalEchoes: 3,
};
let player = {
x: w / 2,
y: h / 2,
radius: 10,
lerpFactor: 0.1,
color: 'hsla(180, 100%, 70%, 1)',
};
let particles = [];
let enemies = [];
let echoes = [];
const SYMBOLS = ['Φ', 'Ψ', 'Ω', 'Δ', 'Σ', 'Π', 'Λ', 'Ξ'];
// --- ENTITY FACTORIES ---
function createParticle() {
return {
x: Math.random() * w,
y: Math.random() * h,
size: Math.random() * 2,
speed: Math.random() * 0.5,
color: Math.random() > 0.9 ? 'rgba(255, 0, 195, 0.8)' : 'rgba(0, 255, 255, 0.5)',
};
}
function createEnemy() {
const side = Math.floor(Math.random() * 4);
let x, y;
if (side === 0) { x = 0; y = Math.random() * h; }
else if (side === 1) { x = w; y = Math.random() * h; }
else if (side === 2) { x = Math.random() * w; y = 0; }
else { x = Math.random() * w; y = h; }
return {
x, y,
size: 10 + Math.random() * 15,
speed: 0.5 + Math.random() * 1,
angle: 0,
};
}
function createEcho() {
return {
x: w * 0.2 + Math.random() * w * 0.6,
y: h * 0.2 + Math.random() * h * 0.6,
radius: 20,
pulse: 0,
}
}
// --- GAME LOGIC ---
function init() {
gameState.running = true;
gameState.mode = 'flight';
gameState.luminance = 100;
gameState.echoesCollected = 0;
player.x = w / 2;
player.y = h / 2;
particles = [];
for (let i = 0; i < 150; i++) particles.push(createParticle());
enemies = [];
for (let i = 0; i < 10; i++) enemies.push(createEnemy());
echoes = [];
for (let i = 0; i < gameState.totalEchoes; i++) echoes.push(createEcho());
updateHUD();
startScreen.classList.remove('visible');
endScreen.classList.remove('visible');
resonanceScreen.classList.remove('visible');
gameLoop();
}
function updateHUD() {
luminanceFill.style.width = `${gameState.luminance}%`;
echoCounterEl.textContent = `ECHOES: ${gameState.echoesCollected} / ${gameState.totalEchoes}`;
}
function takeDamage(amount) {
gameState.luminance -= amount;
if (gameState.luminance < 0) gameState.luminance = 0;
// Visual feedback
container.style.animation = 'shake 0.3s';
setTimeout(() => container.style.animation = '', 300);
if (gameState.luminance <= 0) {
endGame(false);
}
}
function startResonancePuzzle() {
gameState.mode = 'puzzle';
resonanceMatrix.style.display = 'grid';
resonanceMatrix.innerHTML = '';
let puzzleSymbols = SYMBOLS.slice(0, 8).concat(SYMBOLS.slice(0, 8));
puzzleSymbols.sort(() => 0.5 - Math.random()); // Shuffle
puzzleSymbols.forEach(symbol => {
const node = document.createElement('div');
node.classList.add('resonance-node');
node.dataset.symbol = symbol;
node.innerHTML = `<span class="symbol">${symbol}</span>`;
node.addEventListener('click', onNodeClick);
resonanceMatrix.appendChild(node);
});
resonanceScreen.classList.add('visible');
}
let flippedNodes = [];
function onNodeClick(e) {
const node = e.currentTarget;
if (flippedNodes.length < 2 && !node.classList.contains('flipped')) {
node.classList.add('flipped');
flippedNodes.push(node);
if (flippedNodes.length === 2) {
if (flippedNodes[0].dataset.symbol === flippedNodes[1].dataset.symbol) {
// Match
flippedNodes[0].classList.add('matched');
flippedNodes[1].classList.add('matched');
flippedNodes = [];
checkPuzzleWin();
} else {
// No match
setTimeout(() => {
flippedNodes[0].classList.remove('flipped');
flippedNodes[1].classList.remove('flipped');
flippedNodes = [];
}, 1000);
}
}
}
}
function checkPuzzleWin() {
const matchedNodes = document.querySelectorAll('.resonance-node.matched').length;
if (matchedNodes === 16) {
setTimeout(() => {
gameState.mode = 'flight';
resonanceScreen.classList.remove('visible');
resonanceMatrix.style.display = 'none';
gameState.luminance = Math.min(gameState.maxLuminance, gameState.luminance + 30); // Heal
gameState.echoesCollected++;
if (gameState.echoesCollected >= gameState.totalEchoes) {
endGame(true);
}
}, 1000);
}
}
function endGame(win) {
gameState.running = false;
const title = document.getElementById('end-title');
const msg = document.getElementById('end-message');
if (win) {
title.textContent = "AWAKENING";
msg.textContent = "The last echoes have harmonized. Through you, the universe remembers. A new dawn begins.";
} else {
title.textContent = "FADING";
msg.textContent = "Your light has been extinguished. The void falls silent, and the last memories turn to dust.";
}
endScreen.classList.add('visible');
}
// --- DRAWING ---
function drawPlayer() {
ctx.save();
const gradient = ctx.createRadialGradient(player.x, player.y, 0, player.x, player.y, player.radius * (gameState.luminance / 100));
gradient.addColorStop(0, player.color.replace('1)', '1)'));
gradient.addColorStop(0.5, player.color.replace('1)', '0.5)'));
gradient.addColorStop(1, player.color.replace('1)', '0)'));
ctx.fillStyle = gradient;
ctx.beginPath();
ctx.arc(player.x, player.y, player.radius * 3 * (gameState.luminance / 100), 0, Math.PI * 2);
ctx.fill();
ctx.restore();
}
function drawParticles() {
particles.forEach(p => {
p.y -= p.speed;
if (p.y < 0) { p.y = h; p.x = Math.random() * w; }
ctx.fillStyle = p.color;
ctx.fillRect(p.x, p.y, p.size, p.size);
});
}
function drawEnemies() {
enemies.forEach(e => {
ctx.save();
ctx.translate(e.x, e.y);
ctx.rotate(e.angle);
ctx.strokeStyle = `hsla(0, 100%, 60%, ${0.5 + (100 - gameState.luminance) / 200})`;
ctx.lineWidth = 2;
ctx.beginPath();
const sides = 3;
for (let i = 0; i < sides; i++) {
const angle = (i / sides) * Math.PI * 2;
const x = Math.cos(angle) * e.size;
const y = Math.sin(angle) * e.size;
if (i === 0) ctx.moveTo(x,y);
else ctx.lineTo(x,y);
}
ctx.closePath();
ctx.stroke();
ctx.restore();
});
}
function drawEchoes() {
echoes.forEach(e => {
ctx.save();
ctx.strokeStyle = `hsla(${180 + e.pulse * 2}, 100%, 70%, 0.8)`;
ctx.lineWidth = 3;
ctx.shadowBlur = 20;
ctx.shadowColor = `hsla(280, 100%, 70%, 0.8)`;
ctx.beginPath();
ctx.arc(e.x, e.y, e.radius + Math.sin(e.pulse) * 5, 0, Math.PI * 2);
ctx.stroke();
ctx.restore();
});
}
// --- MAIN LOOP ---
function gameLoop() {
if (!gameState.running) return;
// --- UPDATE LOGIC ---
if (gameState.mode === 'flight') {
// Player movement (lerp for smoothness)
player.x += (mouse.x - player.x) * player.lerpFactor;
player.y += (mouse.y - player.y) * player.lerpFactor;
// Enemy behavior
enemies.forEach((e, i) => {
const dx = player.x - e.x;
const dy = player.y - e.y;
const dist = Math.sqrt(dx * dx + dy * dy);
e.x += (dx / dist) * e.speed;
e.y += (dy / dist) * e.speed;
e.angle += 0.05;
if (dist < player.radius + e.size) {
takeDamage(10);
enemies.splice(i, 1);
enemies.push(createEnemy());
}
});
// Echo behavior
echoes.forEach((e, i) => {
e.pulse += 0.05;
const dx = player.x - e.x;
const dy = player.y - e.y;
const dist = Math.sqrt(dx * dx + dy * dy);
if (dist < player.radius + e.radius) {
echoes.splice(i, 1);
startResonancePuzzle();
}
});
updateHUD();
}
// --- DRAWING ---
ctx.clearRect(0, 0, w, h);
drawParticles();
if (gameState.mode === 'flight') {
drawEchoes();
drawEnemies();
drawPlayer();
}
requestAnimationFrame(gameLoop);
}
// --- EVENT LISTENERS ---
window.addEventListener('mousemove', e => {
mouse.x = e.clientX;
mouse.y = e.clientY;
});
startButton.addEventListener('click', init);
restartButton.addEventListener('click', init);
</script>
</body>
</html>