- 1 : Overview
- 2 : Environment SetUp
- 3 : Creating Project in libGDX
- 4 : Importing Projects in Eclipse
- 5 : Executing demo project for Windows
- 6 : Executing demo project for Android
- 7 : Executing demo project for HTML5
- 8 : Developing a real flappy bird game remake game using libGDX from scratch
- 9 : Environment Set Up for Game
- 10 : Understand basics of Game
- 11 : Exploring States and Game State Manager
- 12 : Create Play State and Make Bird Fly
- 13 : Building Obstacles and flying through them
- 14 : Collision and sound effect
- 15 : Porting the Game in Android Device
- 16 : libGDX More possibilities to Brisky Demo
- libGDX Example Code : Implementing Google Play Services Leader Boards in LibGDX
- libGDX Example Code : Text and line Animation
- libGDX Example Code : Experimenting Viewports with Text and Shape Animation for multiple screen Resolutions
- Step by Step Tutorial on libGDX
Executing demo project for HTML5
In previous sections we have learned on how to execute our demo libGDX programs on Windows and Android phone and even in AVD , in this section we are going to focus on how to execute our HTML5 or web program created via libGDX . All these are important and basics of libGDX because at later stages when we will create more and more programs it will be easier for us to execute in any platform of our choice . So lets move ahead
- For my case I need to run versionpb-html . Right click on versionpb-html and select Run As --> Run Configurations ...
- Once you click this you will see Configuration Screen open , Select Gradle project and click on new from top menu to create a new Gradle configuration . Lets Configure Gradle task configuration .
- Give it a name as superDev
- Gradle tasks should be gradlew.bat
- Working Directory should be your project Directory which we used when we setup the project for libGDX . You should see a screen like below
- Once this is done open Gradle argument tab and write html:superDev there . Gradle argument screen should look like as below :
- Once done click run and you should see screen like below :
- Open the console window and wait for following :
- The code server is ready.
Next, visit: http://localhost:9876/
- Open this url http://localhost:9876/ in any web browser to see GWT Code Server as below
- To see your html App open URL : http://localhost:8080/html/ . It should be as below
Table of Contents
- Overview of libGDX
- Environment SetUp
- Creating Project in libGDX
- Importing Projects in Eclipse
- Executing demo project for Windows
- Executing demo project for Android
- Executing demo project for HTML5
- Developing a real flappy bird game remake game using libGDX from scratch
- Environment Set Up for Game
- Understand basics of Game
- Exploring States and Game State Manager
- Create Play State and Make Bird Fly
- Building Obstacles and flying through them
- Collision and sound effect
- Porting the Game in Android Device
- libGDX More possibilities to Brisky Demo