Database options

neovive

  • Posts: 45
I'm planning a word game that will need access to a large database of words.  Are web requests (http://www.stencyl.com/help/view/web-requests/) the best way to implement this in 3.0?  Also arbitrary file I/O available or should I just use a custom Haxe data structure?

Jon

  • *
  • Posts: 17526
Web requests are always recommended.

Arbitrary I/O isn't readily available (you can do it through code), but you can easily abuse game attributes to write out string data to a save file, which I think is what you're after?

neovive

  • Posts: 45
I guess it's possible to use a web request to grab a JSON file with different levels of words and then parse the JSON into game attribute list for saving.  I just didn't want to have to constantly load the words from the web since the lists won't change often.  Thanks.