How to add reflection definition to read JSON files in 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/12
3:54 UTC
Read the original article
Hit count: 222
I have a game which I deployed for desktop and Android. I can read JSON data and create my levels, but 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, so 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. I have no idea where should I place this line or where I should change to make my web app work, so I can read JSON files.
© Game Development or respective owner