-
Notifications
You must be signed in to change notification settings - Fork 0
/
wasm_wrapper.html
45 lines (38 loc) · 1.23 KB
/
wasm_wrapper.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"/>
</head>
<body>
<canvas height="480" id="canvas" width="640"></canvas>
<script type="module">
import init from './rktrl_lib.js';
async function run() {
await init();
}
run();
</script>
<h3>What is this?</h3>
<p>
A roguelike game I'm building by following along the outstanding tutorial at
<a href="https://bfnightly.bracketproductions.com/rustbook/">https://bfnightly.bracketproductions.com/rustbook/</a>
and tweaking things as I go.
</p>
<p>
It's also Rust compiled to WASM, which is pretty amazing.
</p>
<p>
The source is at <a href="https://github.com/abesto/rktrl">abesto/rktrl</a>.
</p>
<h3>Fine, what can I do?</h3>
<ul>
<li>Move around with the VI keys, or arrows, or the numpad</li>
<li>Hit monsters by walking into them</li>
<li>Pick up items with <code>g</code></li>
<li>Open your inventory with <code>i</code> to pick an item to use / equip. Ranged targeting happens with the mouse.
</li>
<li>Pick an item to unequip with <code>r</code></li>
<li>Pick an item to drop with <code>d</code></li>
<li>Hover over things with your mouse for a tooltip</li>
</ul>
</body>
</html>