diff --git a/src/components/Ram.svelte b/src/components/Ram.svelte
index 672bb03..6076255 100644
--- a/src/components/Ram.svelte
+++ b/src/components/Ram.svelte
@@ -14,15 +14,24 @@
autoStart: true,
backgroundAlpha: 0,
width: 900,
- height: 900
+ height: 900,
});
model = await Live2DModel.from("https://cdn.arti3.dev/live2d/ram/ram.model3.json");
app.stage.addChild(model as unknown as PIXI.DisplayObject);
+ canvas.style.cursor = "pointer";
+
+ model.internalModel.motionManager.state.shouldRequestIdleMotion = () => false;
+ model.internalModel.motionManager.on("motionFinish", () => {
+ setTimeout(() => model.motion("Idle"), 2000);
+ });
+
+ model.motion("Idle");
+
model.scale.set(0.45);
- model.x = -600
- model.y = -70
+ model.x = -600;
+ model.y = -70;
});
onDestroy(() => {
@@ -30,4 +39,9 @@
});
-
+