feat: Create optimized pixel sand simulation with chunking system
This commit is contained in:
32
index.html
Normal file
32
index.html
Normal file
@@ -0,0 +1,32 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Pixel Sand Simulation</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="controls">
|
||||
<div class="tools">
|
||||
<button id="sand-btn" class="active">Sand</button>
|
||||
<button id="water-btn">Water</button>
|
||||
<button id="eraser-btn">Eraser</button>
|
||||
</div>
|
||||
<div class="navigation">
|
||||
<button id="move-left">←</button>
|
||||
<button id="move-right">→</button>
|
||||
<button id="move-up">↑</button>
|
||||
<button id="move-down">↓</button>
|
||||
</div>
|
||||
<div class="info">
|
||||
<span id="coords">Chunk: 0,0</span>
|
||||
<span id="fps">FPS: 0</span>
|
||||
</div>
|
||||
</div>
|
||||
<canvas id="simulation-canvas"></canvas>
|
||||
</div>
|
||||
<script src="script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user