Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Room background settings are stored in the level data, should only store the background type #111

Open
city41 opened this issue Jun 28, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@city41
Copy link
Owner

city41 commented Jun 28, 2021

Currently the level format stores bgGraphic, bgColor and bgExtraColorAndEffect as individual values in the level data. The intent was to allow people to customize these values. The downside is whenever one of these values proves to be wrong, the only way a level can get fixed is for the user to change the background to something else then back again.

tasks

  • only store the background type (ie plains, fortress, etc) in the level data
  • in createLevelData, look up the current values for bgGraphic,color,extraColor based on the type
  • add a version migration to move all current levels to this
  • think about allowing overrides for advanced usages in the future.
@city41 city41 added the enhancement New feature or request label Jun 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant