key helper

This commit is contained in:
Orion Reed 2024-12-09 21:54:20 -05:00
parent 5f7ff68c9f
commit 7c9e614d76
1 changed files with 34 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Distance Field Demo</title> <title>Falling Sand Demo</title>
<style> <style>
html { html {
height: 100%; height: 100%;
@ -27,9 +27,42 @@
position: absolute; position: absolute;
inset: 0; inset: 0;
} }
.key-helper {
position: fixed;
top: 20px;
right: 20px;
background: rgba(0, 0, 0, 0.7);
color: white;
padding: 10px;
border-radius: 5px;
font-family: monospace;
z-index: 1000;
display: flex;
flex-direction: column;
gap: 5px;
}
.key-number {
display: inline-block;
background: rgba(255, 255, 255, 0.2);
padding: 2px 8px;
border-radius: 3px;
margin-right: 10px;
}
</style> </style>
</head> </head>
<body> <body>
<div class="key-helper">
<div><span class="key-number">1</span> Smoke</div>
<div><span class="key-number">2</span> Water</div>
<div><span class="key-number">3</span> Lava</div>
<div><span class="key-number">4</span> Sand</div>
<div><span class="key-number">5</span> Plant</div>
<div><span class="key-number">6</span> Stone</div>
<div><span class="key-number">7</span> Wall</div>
</div>
<folk-sand> <folk-sand>
<folk-shape x="100" y="100" width="50" height="50"></folk-shape> <folk-shape x="100" y="100" width="50" height="50"></folk-shape>
<folk-shape x="100" y="200" width="50" height="50"></folk-shape> <folk-shape x="100" y="200" width="50" height="50"></folk-shape>