mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-06 03:15:48 -06:00
21 lines
565 B
HTML
21 lines
565 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
</head>
|
|
<body>
|
|
<canvas id="canvas"></canvas>
|
|
<script type="text/javascript">
|
|
let Module = {
|
|
canvas: (function () {
|
|
// this is how we provide a canvas to our sdl2
|
|
return document.getElementById("canvas");
|
|
})(),
|
|
preRun: [function () {
|
|
ENV.RUST_LOG = "info,wgpu=warn"
|
|
}]
|
|
};
|
|
</script>
|
|
<script src="Pac-Man.js"></script>
|
|
</body>
|
|
</html> |