summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-03-13 11:28:15 +0800
committerEltrac <hi@guhub.cn>2025-03-13 11:28:15 +0800
commitfcde32ea2b6eb628cd7a89399e8ff62ad92a3df3 (patch)
treee1e4728a1268f40dc2693bcb0a13217fdf45d251
parent14fe9ae7434ca365b7e44131042ce6e1f8e73799 (diff)
feat: add pokob
-rw-r--r--data/enemyData.lua26
-rw-r--r--data/roomData.lua16
-rw-r--r--render/sprite.lua1
-rw-r--r--resources/sheets/pokob.pngbin0 -> 13020 bytes
4 files changed, 40 insertions, 3 deletions
diff --git a/data/enemyData.lua b/data/enemyData.lua
index 79fe9d0..faa9f3e 100644
--- a/data/enemyData.lua
+++ b/data/enemyData.lua
@@ -42,8 +42,7 @@ local enemyData = {
},
drops = {
{ type = "purpleheart", amount = 1, chances = 1 },
- { type = "stickyheart", amount = 1, chances = 0.5 },
- { type = "bigheart", amount = 1, chances = 0.01 }
+ { type = "stickyheart", amount = 1, chances = 0.5 }
},
},
librarian = {
@@ -90,6 +89,29 @@ local enemyData = {
{ type = "yellowheart", amount = 2, chances = 1 },
{ type = "shinyheart", amount = 1, chances = 0.2 }
},
+ },
+ pokob = {
+ size = 30,
+ zoom = 1/16,
+ speed = 30,
+ health = 300,
+ sprite = {
+ type = "spritesheet",
+ name = "pokob",
+ sheet = { row = 4, col = 12 },
+ totalFrames = 4,
+ frames = {
+ [Direction.LEFT] = { 4, 5, 4, 6 },
+ [Direction.RIGHT] = { 1, 2, 1, 3 },
+ [Direction.DOWN] = { 7, 8, 7, 8 },
+ [Direction.UP] = { 11, 12, 11, 12 }
+ },
+ },
+ drops = {
+ { type = "bigheart", amount = 1, chances = 0.5 },
+ { type = "brokenheart", amount = 1, chances = 1 },
+ { type = "brokenheart", amount = 1, chances = 0.5 }
+ },
}
}
diff --git a/data/roomData.lua b/data/roomData.lua
index 56dbd38..2292bb7 100644
--- a/data/roomData.lua
+++ b/data/roomData.lua
@@ -102,7 +102,21 @@ local roomData = {
{"citrusLitulon","random"},
{"citrusLitulon","random"},
}
- }
+ },
+ daddyAndSon = {
+ name = "Daddies and Sons",
+ type = roomType.COMBAT,
+ width = config.defaultRoomW,
+ height = config.defaultRoomH,
+ enemies = {
+ {"pokob", "topCenter"},
+ {"lancer", "topCenter"},
+ {"pokob", "bottomCenter"},
+ {"lancer", "bottomCenter"},
+ {"pokob", "center"},
+ {"lancer", "center"},
+ }
+ },
}
return roomData
diff --git a/render/sprite.lua b/render/sprite.lua
index 339fd3f..6545ba6 100644
--- a/render/sprite.lua
+++ b/render/sprite.lua
@@ -13,6 +13,7 @@ local spriteSheets = {
{ name = "spiger", w = 32, h = 32 },
{ name = "librarian", w = 32, h = 32 },
{ name = "citrus-litulon", w = 32, h = 32 },
+ { name = "pokob", w = 32, h = 32 }
}
function sprite.get(type)
diff --git a/resources/sheets/pokob.png b/resources/sheets/pokob.png
new file mode 100644
index 0000000..a70a495
--- /dev/null
+++ b/resources/sheets/pokob.png
Binary files differ