
Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!
Loads qml level files derived from LevelBase dynamically. More...
Import Statement: | import Felgo 3.0 |
The LevelEditor uses the LevelLoader element to load levels derived from LevelBase with a call of LevelEditor::loadSingleLevel() or LevelEditor::createNewLevel().
These LevelBase components contain static elements that differ between levels. For example, these levels might exist:
// Level01.qml: LevelBase { property int startGold: 30 } // Level02.qml: LevelBase { property int startGold: 50 }
You can then use these LevelBase components when creating a new level with LevelEditor::createNewLevel(): add the levelBaseName (for dynamic levels) or the levelBaseUrl (for static levels) as a parameter of levelMetaData and the correct level gets loaded automatically.
Additionally, enter the valid levels either to the LevelEditor::levelBaseNameToUrlMap property in case of dynamic levels, or to the qmlLevelList in case of LevelEditor::applicationQMLLevels.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: