Good way to store preset monster data?

Hi,

What’s a good way to store a list of preset item/monster attributes?
I’ll need to retrieve the data for the specific monster when I spawn them in-game.

I’ve looked briefly into XML and not sure if it’s a good choice yet due to readability (too many <> tags). Are there any neater way to store the data? Thanks

Additional note: preferably works on both mobile and web-player

Example data:

  • Name: Slime

  • Prefab: slimeModel

  • HP: 10

  • Speed: 5

  • Name: Zombie

  • Prefab: zombieModel

  • HP: 5

  • Speed: 1

loop? function? var?

I don’t think posting any of the codes will be relevant? :face_with_spiral_eyes:

Currently, I’ve the monster attributes hard coded in my functions. I want to move them into a database/list kinda thing for easier future expansion, but I’m unsure if XML will be the right choice. Just seeking some opinions here, not code. Thanks!

Update
After more research, I’ve decided to go with JSON for my data. :sunglasses: