diff options
| author | Eltrac <hi@guhub.cn> | 2025-03-03 20:42:22 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-03-03 20:42:22 +0800 |
| commit | 3453f9af12dcb39cc9d53b2ad22610cc99b4cc55 (patch) | |
| tree | 8a02f01fa75e6643219645b60952849711a72e09 /data | |
| parent | 27d9e2acd1a70993480d1d175ff67b25504e9332 (diff) | |
feat: new enemy librarian + green heart
Diffstat (limited to 'data')
| -rw-r--r-- | data/enemyData.lua | 22 | ||||
| -rw-r--r-- | data/roomData.lua | 30 |
2 files changed, 52 insertions, 0 deletions
diff --git a/data/enemyData.lua b/data/enemyData.lua index 3d9be6f..3d6ad7a 100644 --- a/data/enemyData.lua +++ b/data/enemyData.lua @@ -42,6 +42,28 @@ enemyData = { { type = "bigheart", amount = 1, chances = 1 } }, }, + librarian = { + size = 30, + zoom = 1/16, + speed = 40, + health = 100, + sprite = { + type = "spritesheet", + name = "librarian", + sheet = { row = 1, col = 6 }, + totalFrames = 3, + frames = { + [Direction.LEFT] = { 4, 5, 6 }, + [Direction.RIGHT] = { 1, 2, 3 }, + [Direction.DOWN] = { 1, 2, 3 }, + [Direction.UP] = { 4, 5, 6 } + }, + }, + drops = { + { type = "greenheart", amount = 1, chances = 1 }, + { type = "greenheart", amount = 1, chances = 0.25 } + }, + }, fairy = { size = 8, speed = 60, diff --git a/data/roomData.lua b/data/roomData.lua index 33eda95..e0749e7 100644 --- a/data/roomData.lua +++ b/data/roomData.lua @@ -60,6 +60,36 @@ roomData = { Obstacle:new("pillar", "bottomCenter"), }, }, + library = { + type = roomType.COMBAT, + width = config.defaultRoomW, + height = config.defaultRoomH, + enemies = { + Enemy:new("librarian", "topCenter"), + Enemy:new("librarian", "bottomCenter"), + Enemy:new("lancer", "center") + }, + obstacles = { + Obstacle:new("pillar", "topRight"), + Obstacle:new("pillar", "bottomLeft"), + Obstacle:new("pillar", "topLeft"), + Obstacle:new("pillar", "bottomRight"), + }, + }, + bookstore = { + type = roomType.COMBAT, + width = config.defaultRoomW, + height = config.defaultRoomH, + enemies = { + Enemy:new("librarian", "topRight"), + Enemy:new("librarian", "bottomRight"), + Enemy:new("librarian", "topLeft"), + Enemy:new("librarian", "bottomLeft"), + }, + obstacles = { + Obstacle:new("pillar", "center"), + }, + }, } roomNames = {} |
