From 240208c0e00d51beaea3b58d30ba17f981443323 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Thu, 27 Feb 2025 16:44:53 +0800 Subject: feat: add lancer's sprite --- data/enemyData.lua | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'data/enemyData.lua') diff --git a/data/enemyData.lua b/data/enemyData.lua index 1eca0ee..0cd0362 100644 --- a/data/enemyData.lua +++ b/data/enemyData.lua @@ -3,8 +3,17 @@ enemyData = { size = 12, speed = 25, health = 100, - appearance = { - color = { 0, 1, 1 } + sprite = { + type = "spritesheet", + name = "lancer", + sheet = { row = 2, col = 8, width = 32, height = 32 }, + frames = { + [Direction.LEFT] = { 5, 6 }, + [Direction.RIGHT] = { 3, 4 }, + [Direction.DOWN] = { 1, 2 }, + [Direction.UP] = { 7, 8 } + }, + zoom = 32 / 16, }, drops = { { type = "blueheart", amount = 1, chances = 1 }, -- cgit v1.2.3