solarus-games / solarus

This repository was moved to GitLab: https://gitlab.com/solarus-games/solarus
http://www.solarus-games.org
Other
710 stars 133 forks source link

Add custom properties to maps #1143

Open wrightmat opened 6 years ago

wrightmat commented 6 years ago

To be consistent with the new custom properties of entities.

christopho commented 6 years ago

Not sure if we will have time to custom properties on maps for 1.6, but an easy workaround is to put a special entity on your maps, and to put custom properties on it.

wrightmat commented 6 years ago

Very true. I'm just thinking long term and for sake of consistency :)

Diarandor commented 6 years ago

The idea is great. It can be used to set properties like subworlds, weather, select a special game mode (sidescrolling instead of normal mode), add special events (like the witch appearing in the oracle games), etc.

wrightmat commented 6 years ago

Great points Diarandor (weather had specifically come to mind for me too)! It would also allow for removal of some of the hard-coded map propertied in the future should Christopho choose - things like setting the world or floor could be easily handled by properties.

I've been working in Unity a lot lately, and something like this would also get us closer to the "Inspector" in that engine, which is incredibly powerful.