summaryrefslogtreecommitdiff
path: root/data/enemyData.lua
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-02-27 16:44:53 +0800
committerEltrac <hi@guhub.cn>2025-02-27 16:44:53 +0800
commit240208c0e00d51beaea3b58d30ba17f981443323 (patch)
tree1bef10edcc8b5bd3ca88f3ff04cba2e5c10955a1 /data/enemyData.lua
parenteba04111521bed0ffb1595a21c6fb3c1ee0bd856 (diff)
feat: add lancer's sprite
Diffstat (limited to 'data/enemyData.lua')
-rw-r--r--data/enemyData.lua13
1 files changed, 11 insertions, 2 deletions
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 },