Any reason to use XML/JSON over dict's for data?

0 favourites
  • 3 posts
From the Asset Store
Data+ is the best Data Management solution for Construct 3. It contains 4 Addons (Plugin & Behavior).
  • I've been working a while now on a vertical shooter and it's time to try and figure out when and how to spawn enemies. My first thought was to store the data in an XML file which is read into the game on start. Then it hit me that this might be an unnecessary step since i can simple store all the data in a dictionary right? On top of all that, wouldn't external XML files be vulnerable to manipulation from the user?

    So anyway, I need to spawn certain enemies at certain points during the game -- like when the camera reaches Y position 4200 while moving up. What would you're thoughts be on this? When it comes to saving the game, then i would understand XML/JSON, but for simply reading in game data...

    Thanks!

  • Have you looked at the Space Blaster demo game? It uses invisible objects placed in the layout to spawn enemies. No XML/JSON/Dictionaries used at all.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Right okay Ashley... I've been thought to instantiate objects when needed so to save on performance, but I guess that approach would work too. I'll consider using it thanks.

    EDIT:

    Oh... i see what you mean now. Works pretty good. ^^

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)