From fcde32ea2b6eb628cd7a89399e8ff62ad92a3df3 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Thu, 13 Mar 2025 11:28:15 +0800 Subject: feat: add pokob --- data/enemyData.lua | 26 ++++++++++++++++++++++++-- data/roomData.lua | 16 +++++++++++++++- 2 files changed, 39 insertions(+), 3 deletions(-) (limited to 'data') 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 -- cgit v1.2.3