HTML read in configuration files

Anything libgdx related goes here!

HTML read in configuration files

Postby vewert » Thu May 16, 2019 10:53 pm

I am considering using libGDX for an online game. One requirement is that I need to be able to read in some configuration files during initialization of the game that will determine some game play parameters. Am I able to include some text files, in the assets folder, that my code would have access to at runtime?
vewert
 
Posts: 1
Joined: Thu May 16, 2019 10:31 pm

Re: HTML read in configuration files

Postby shatterblast » Fri May 17, 2019 2:10 am

Yes, but you would need to add something yourself that would process the HTML into what you want. GitHub may have an open source solution for the HTML. Otherwise, LibGDX offers a fairly nice way of accessing files. Typically, you can take advantage of a user's home directory to access files that you may want to modify over time, like for saving a user's progress, but that step also takes a little bit of extra knowledge to achieve. Files inside a game build itself remain "read-only".
shatterblast
 
Posts: 306
Joined: Sun Jul 06, 2014 1:14 pm


Return to Libgdx

Who is online

Users browsing this forum: Bing [Bot], Exabot [Bot], Google Feedfetcher and 1 guest