summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-03-06 11:12:07 +0800
committerEltrac <hi@guhub.cn>2025-03-06 11:12:07 +0800
commit0609596fe52ebd652131a39b3e71ef2409c94345 (patch)
treea8c2c3bb4318c773db0a6362f5e04202d6b628a5 /data
parent27684077b587edc1c61e57ffd5740409e87f9c01 (diff)
feat: replace enemy "fairy" with new sprite "citrus-litulon"
Diffstat (limited to 'data')
-rw-r--r--data/enemyData.lua21
-rw-r--r--data/roomData.lua18
2 files changed, 30 insertions, 9 deletions
diff --git a/data/enemyData.lua b/data/enemyData.lua
index e189b2c..dba10cc 100644
--- a/data/enemyData.lua
+++ b/data/enemyData.lua
@@ -67,14 +67,23 @@ local enemyData = {
},
movePattern = "vertical",
},
- fairy = {
- size = 8,
+ citrusLitulon = {
+ size = 16,
+ zoom = 1/16,
speed = 60,
health = 50,
- appearance = {
- color = { 251/255, 243/255, 185/255 }
- }
- ,
+ sprite = {
+ type = "spritesheet",
+ name = "citrus-litulon",
+ sheet = { row = 4, col = 4 },
+ totalFrames = 4,
+ frames = {
+ [Direction.RIGHT] = { 1, 2, 3, 4 },
+ [Direction.DOWN] = { 5, 6, 7, 8 },
+ [Direction.LEFT] = { 9, 10, 11, 12 },
+ [Direction.UP] = { 13, 14, 15, 16 }
+ },
+ },
drops = {
{ type = "yellowheart", amount = 2, chances = 1 },
{ type = "shinyheart", amount = 1, chances = 0.2 }
diff --git a/data/roomData.lua b/data/roomData.lua
index cc4f3bf..c1b8033 100644
--- a/data/roomData.lua
+++ b/data/roomData.lua
@@ -30,9 +30,9 @@ local roomData = {
enemies = {
{"lancer", "leftCenter"},
{"lancer", "rightCenter"},
- {"fairy", "center"},
- {"fairy", "center"},
- {"fairy", "center"},
+ {"citrusLitulon", "center"},
+ {"citrusLitulon", "center"},
+ {"citrusLitulon", "center"},
},
obstacles = {
{"pillar", "topRight"},
@@ -85,6 +85,18 @@ local roomData = {
{"pillar", "center"},
},
},
+ fireflyForest = {
+ type = roomType.COMBAT,
+ width = config.defaultRoomW,
+ height = config.defaultRoomH,
+ enemies = {
+ {"citrusLitulon","random"},
+ {"citrusLitulon","random"},
+ {"citrusLitulon","random"},
+ {"citrusLitulon","random"},
+ {"citrusLitulon","random"},
+ }
+ }
}
return roomData