Fix the animation issue
This commit is contained in:
1 parent
9ab90b579c
commit
a0671e7953
4 files changed
+12
-11
No files matched your search
@@ -17,7 +17,7 @@ export type Hero = {
|
||||
velocity: Vector;
|
||||
body: Circle;
|
||||
sprite: Sprite;
|
||||
animation: SpriteAnimation;
|
||||
$animation: { value: SpriteAnimation };
|
||||
};
|
||||
|
||||
const speed = 0.05;
|
||||
@@ -35,7 +35,7 @@ const state: Hero = {
|
||||
velocity: createVector(),
|
||||
body: createCircle(createVector(), 4),
|
||||
sprite,
|
||||
animation: createSpriteAnimation(sprite, 500, 2),
|
||||
$animation: { value: createSpriteAnimation(sprite, 500, 2) },
|
||||
};
|
||||
|
||||
const process = defineEntity("hero", state);
|
||||
|
||||
Reference in new issue
Block a user