From f451423f5c6a89fd0d038cb1b528d7f58d82cc74 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Fri, 28 Feb 2025 10:35:13 +0800 Subject: feat: enemy walking animation --- data/enemyData.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'data/enemyData.lua') diff --git a/data/enemyData.lua b/data/enemyData.lua index 60d781e..3d9be6f 100644 --- a/data/enemyData.lua +++ b/data/enemyData.lua @@ -8,6 +8,7 @@ enemyData = { type = "spritesheet", name = "lancer", sheet = { row = 2, col = 8, width = 32, height = 32 }, + totalFrames = 2, frames = { [Direction.LEFT] = { 5, 6 }, [Direction.RIGHT] = { 3, 4 }, @@ -29,6 +30,7 @@ enemyData = { type = "spritesheet", name = "spiger", sheet = { row = 4, col = 6, width = 32, height = 32 }, + totalFrames = 6, frames = { [Direction.LEFT] = { 19, 20, 21, 22, 23, 24 }, [Direction.RIGHT] = { 13, 14, 15, 16, 17, 18 }, -- cgit v1.2.3