mirror of
https://github.com/cave-story-randomizer/cave-story-randomizer
synced 2025-07-09 20:16:19 +00:00
13 lines
490 B
Lua
13 lines
490 B
Lua
local RESOURCE = (...):gsub('%.', '/') .. '/'
|
|
local ROOT = (...):gsub('[^.]*.[^.]*$', '')
|
|
|
|
return function (config)
|
|
config = config or {}
|
|
config.resources = config.resources or RESOURCE
|
|
config.backColor = config.backColor or { 40, 40, 40 }
|
|
config.lineColor = config.lineColor or { 60, 60, 60 }
|
|
config.textColor = config.textColor or { 240, 240, 240 }
|
|
config.highlight = config.highlight or { 0x00, 0x5c, 0x94 }
|
|
return require(ROOT .. 'engine.alpha')(config)
|
|
end
|