![]() ![]() You are able to step through the Java code lines. The Java file will open within Chrome’s dev console and you can set a break point. Hit Ctrl-P and enter the name of the Java file you want to debug. After the game restarted, open Chrome’s dev console with F12 and navigate to the sources tab.The game will recompile and source maps will be set up. Hit the big reload button and hit compile.Your game is available here: (current config) or (older Gradle configuration with Jetty plugin) - open the page with Chrome to debug.When it is done, it will idle to keep the server running. It compiles the game and sets up a local HTTP server. You can debug the application with the following steps: But sometimes, there are bugs only appearing when running on HTML5. This is not necessary in most cases: if there are problems in your core game, you can debug the desktop application. SuperDev allows you to debug your HTML5 application. gradlew html:dist produces a fully-functioning web page that can be uploaded to a static web host (such as the free GitHub Pages service) it also optimizes the web page so the game in it will perform better, which makes dist take a little longer than superDev. ![]() gradlew html:superDev will be your main tool during development it allows for a much-improved debugging experience and allows quickly reloading changes to the Java code. You’ll want to get familiar with two Gradle tasks in particular you can launch these tasks from your IDE if you aren’t comfortable on the command line, but command-line Gradle tends to avoid problems when the IDE isn’t working as well as we would like. So there are a few things that are fundamentally different about developing using GWT as opposed to running a desktop project. If you want to make your own libGDX game deploy to the web using GWT, well, just make a project in the latest setup jar and make sure to check the Html checkbox. ![]() This is possible by GWT, or Google Web Toolkit! I know what you’re thinking, Google? The guys who are trying to let people search the Internet with a form? What are they doing with libGDX? I have no idea either. That’s right! You can make your very own libGDX games that run in an HTML5-capable web browser, which I assume is some advanced form of Netscape Navigator. Welcome to a place of magic and wonder, the World Wide Web! Even though some folks say this Internet thing is “just a fad,” and we should keep using usenet and gopher, there’s at least one thing the WWW has that those technologies don’t: libGDX Games
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |