Files
atomic-engine/web/index.html
T
nico a2700df292 v0.5: Blue sky gradient, acid rework, iron, phase transitions, shadows (experimental)
- Blue sky gradient background (y<600 blue, 600-700 gradient, y>700 dark)
- Acid system: health-based damage via acid_resist, not instant delete
- New material: Iron (ID 16) - acid-proof, heat-conductive, reflective
- Phase transitions: Iron→Lava (150°C), Sand→Glass (200°C), Glass→Lava (160°C)
- Stone no longer melts (lava containment)
- Heat transfer formula improved (divisor 255→200)
- Iron metallic texture with bright highlights + light reflection
- Shadow system attempted (grid-based, per-pixel) - reverted, needs rethink
- Updated AGENTS.md for next session
2026-07-10 14:35:35 +02:00

95 lines
2.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>AtomicEngine</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #508cdc; }
canvas {
display: block;
position: absolute;
top: 0;
left: 0;
}
#panel {
position: fixed;
bottom: 8px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 2px;
padding: 4px 8px;
background: rgba(0,0,0,0.7);
border-radius: 6px;
z-index: 10;
font-family: monospace;
font-size: 10px;
color: #ccc;
user-select: none;
}
.mat {
display: flex;
flex-direction: column;
align-items: center;
padding: 3px 4px;
border-radius: 4px;
cursor: default;
min-width: 36px;
border: 1px solid transparent;
transition: background 0.1s;
}
.mat.active {
background: rgba(255,255,255,0.15);
border-color: rgba(255,255,255,0.5);
}
.mat .swatch {
width: 14px;
height: 14px;
border-radius: 2px;
margin-bottom: 2px;
}
.mat .label {
text-align: center;
line-height: 1;
}
.mat .key {
color: #888;
}
#info {
position: fixed;
top: 8px;
left: 8px;
color: #fff;
font-family: monospace;
font-size: 11px;
background: rgba(0,0,0,0.6);
padding: 4px 8px;
border-radius: 4px;
z-index: 10;
}
#fps {
position: fixed;
top: 8px;
right: 8px;
color: #0f0;
font-family: monospace;
font-size: 14px;
font-weight: bold;
background: rgba(0,0,0,0.6);
padding: 4px 8px;
border-radius: 4px;
z-index: 10;
}
</style>
</head>
<body>
<canvas id="canvas"></canvas>
<div id="info">AtomicEngine v0.2</div>
<div id="fps">60 FPS</div>
<div id="panel"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>