mirror of
https://github.com/sotrh/learn-wgpu.git
synced 2024-11-04 06:00:47 +00:00
25 lines
519 B
HTML
25 lines
519 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Pong with WASM</title>
|
|
</head>
|
|
|
|
<body>
|
|
<script type="module">
|
|
import init from "./pkg/pong.js";
|
|
init().then(() => {
|
|
console.log("WASM Loaded");
|
|
});
|
|
</script>
|
|
<style>
|
|
canvas {
|
|
background-color: black;
|
|
}
|
|
</style>
|
|
</body>
|
|
|
|
</html> |