From 3453f9af12dcb39cc9d53b2ad22610cc99b4cc55 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Mon, 3 Mar 2025 20:42:22 +0800 Subject: feat: new enemy librarian + green heart --- data/enemyData.lua | 22 ++++++++++++++++++++++ data/roomData.lua | 30 ++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) (limited to 'data') 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 = {} -- cgit v1.2.3