From 79d80dfec498f5c848d2a9bfa86847fe3c3a59a9 Mon Sep 17 00:00:00 2001 From: dominx99 Date: Wed, 29 Nov 2023 22:32:13 +0100 Subject: [PATCH] Fix getting angle & rotation in sample project --- .../sample4/main/spritesheets/bullets/BulletSpritesheets.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sample4/main/spritesheets/bullets/BulletSpritesheets.ts b/packages/sample4/main/spritesheets/bullets/BulletSpritesheets.ts index 350b8a92..9e3365df 100644 --- a/packages/sample4/main/spritesheets/bullets/BulletSpritesheets.ts +++ b/packages/sample4/main/spritesheets/bullets/BulletSpritesheets.ts @@ -31,10 +31,10 @@ const anim = (direction: Direction, angle: number, rotation: number): any[][] => framesHeight: 1, textures: { [Animation.Walk]: { - animations: (direction, params) => anim(direction, params), + animations: (direction, angle, rotation) => anim(direction, angle, rotation), }, [Animation.Stand]: { - animations: (direction, params) => anim(direction, params), + animations: (direction, angle, rotation) => anim(direction, angle, rotation), }, }, })