aboutsummaryrefslogtreecommitdiff
path: root/static/src/main.ts
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth@simponic.xyz>2024-09-14 22:33:35 -0700
committerElizabeth Hunt <elizabeth@simponic.xyz>2024-09-14 22:33:35 -0700
commitf7e7121fce7bd3f7fdabe836955e43b3d194c1c6 (patch)
tree7092421f8a594f62164192d27df69220edda223c /static/src/main.ts
parent8ec7f5368232d59f344e1067e1bad5e48dbcb7ae (diff)
downloadkennel.hatecomputers.club-f7e7121fce7bd3f7fdabe836955e43b3d194c1c6.tar.gz
kennel.hatecomputers.club-f7e7121fce7bd3f7fdabe836955e43b3d194c1c6.zip
add a spritesheet component
Diffstat (limited to 'static/src/main.ts')
-rw-r--r--static/src/main.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/static/src/main.ts b/static/src/main.ts
index c11e41e..cc6f42c 100644
--- a/static/src/main.ts
+++ b/static/src/main.ts
@@ -10,7 +10,7 @@ import { NetworkSystem } from "./engine/network";
import { RenderSystem } from "./engine/render";
import { InputSystem } from "./engine/input";
import { TrailingPositionSystem } from "./engine/trailing_position";
-import { drainPoints, setDelay } from "laser-pen";
+import { drainPoints, setDelay, setRoundCap } from "laser-pen";
$(async () => {
const client_id = await fetch("/assign", {
@@ -32,6 +32,7 @@ $(async () => {
const input_system = new InputSystem(publisher, gamecanvas);
setDelay(500);
+ setRoundCap(true);
const render_system = new RenderSystem(gamecanvas);
const trailing_position = new TrailingPositionSystem(drainPoints);