Skip to content

Commit

Permalink
Convert to vite
Browse files Browse the repository at this point in the history
  • Loading branch information
chinoto committed Mar 12, 2023
1 parent 06bc2c0 commit 990f8e7
Show file tree
Hide file tree
Showing 8 changed files with 1,097 additions and 7,072 deletions.
6 changes: 0 additions & 6 deletions www/bootstrap.js

This file was deleted.

2 changes: 1 addition & 1 deletion www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
<button id="play-pause"></button>
<div id="fps"></div>
<canvas id="game-of-life-canvas"></canvas>
<script src="./bootstrap.js"></script>
<script type="module" src="./index.ts"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions www/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { memory } from "wasm-game-of-life/wasm_game_of_life_bg.wasm";
import { Universe, Cell } from "wasm-game-of-life";
import init, { Universe, Cell } from "wasm-game-of-life";
let { memory } = await init();

const CELL_SIZE = 5; // px
const GRID_COLOR = "#CCCCCC";
Expand Down
Loading

0 comments on commit 990f8e7

Please sign in to comment.