diff --git a/README.md b/README.md index 514a281..eb37f92 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,21 @@ Cave Story Randomizer ===================== +Todo +---- + +- Add all weapons. +- Add all items. +- Add instructions. +- Provide modified Cave.pxm. (When Bubbline or Fireball) + Issues ------ - 3 Life Capsules can not be replaced because they appear on maps with 2 capsules. Need label-aware replace. - Hell Missile Upgrade uses a unique script and won't be easy to replace. -- Bubbler (and other weapons?) can't break blocks in the First Cave. + +Credits +------- + +- Font: https://datagoblin.itch.io/monogram diff --git a/src/assets/background.png b/src/assets/background.png new file mode 100644 index 0000000..0193393 Binary files /dev/null and b/src/assets/background.png differ diff --git a/src/assets/monogram_extended.ttf b/src/assets/monogram_extended.ttf new file mode 100644 index 0000000..948c06a Binary files /dev/null and b/src/assets/monogram_extended.ttf differ diff --git a/src/conf.lua b/src/conf.lua index 219781d..9229d51 100644 --- a/src/conf.lua +++ b/src/conf.lua @@ -2,9 +2,6 @@ if io then io.stdout:setvbuf("no") end -local seed = os.time() -math.randomseed(seed) - function love.conf(t) t.window = { title = "Cave Story Randomizer", diff --git a/src/database/items.lua b/src/database/items.lua index 1c931ef..76f228d 100644 --- a/src/database/items.lua +++ b/src/database/items.lua @@ -1,10 +1,19 @@ function weapon(t) - assert(t.name and t.map and t.id and t.ammo) + assert(t.name and t.map and t.id) + local ammo = t.ammo or "0000" + local names = t.name + if type(names) == 'string' then + names = {names} + end + local getText = {} + for _, name in ipairs(names) do + table.insert(getText, ("Got the =%s=!