How to add reflection definition to read json files on web game

Posted by user3728735 on Game Development See other posts from Game Development or by user3728735
Published on 2014-06-11T06:26:26Z Indexed on 2014/06/11 9:44 UTC
Read the original article Hit count: 213

Filed under:
|

I have a game which I deployed for desktop and android, I can read json data and create my levels, but the problem is, when it comes to reading json files from web app, I get an error that logs, cannot read the json file, I researched a lot and I found out that I should add my json config class to configurations, I added this line to gameName.gwt.xml, which is in core folder

<extend-configuration-property name="gdx.reflect.include" value="com.las.get.level.LevelConfig"/> 

but it did not work out too, I have no idea where should I place this line, or where should I change to make my web app work, so I can read json files

© Game Development or respective owner

Related posts about java

Related posts about libgdx