Adding data
See also:
System:
Adding data
Adding in things such as trigger points:
Add the data to ‘demo room‘ in OverworldMap.js:
[utils.asGridCoord(5,10)]: [
{
events: [
{type: "changeMap", map: "Kitchen"},
]
}
]
We are making ‘changeMap’
Add ‘changeMap‘ to the ‘OverworldEvent.js’:
changeMap(resolve){
this.map.overworld.startMap (window.OverworldMaps[this.event.map]);
resolve();
}