Skip to content

Commit

Permalink
chore: make dev index more consistant with example
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbrusegard committed Oct 7, 2024
1 parent 32c2cd7 commit 1dad896
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@

window.addEventListener('keydown', function (event) {
if (event.code === 'Space') {
const dx = 1000 * (Math.random() - 0.5);
const dy = 1000 * (Math.random() - 0.5);
//simulation.splatAtLocation(500, 500, dx, dy);
simulation.multipleSplats(1);
}
});

window.addEventListener('beforeunload', () => {
simulation.stop();
});
</script>
</head>
<body style="margin: 0; width: 100%; height: 100%; overflow: hidden"></body>
Expand Down

0 comments on commit 1dad896

Please sign in to comment.