cyanskies / hades

A 2d game framework
1 stars 0 forks source link

Loading Script API #120

Open cyanskies opened 3 years ago

cyanskies commented 3 years ago

API for loading scripts.

These scripts are called during level load, and has access to the game api as well. If a script isn't provided then one will be provided that loads everything. The goal of the script is to do some additional work during load, or to be more selective about what gets loaded.

compose the loading using the level::load function: load(level_save) // loads evertything load(object)// loads a single object etc.