Game Development Reference
In-Depth Information
Let's try to run the application now. To do this, right-click on the
demo-html
project
in
Project Explorer
in Eclipse and then select the
Web Application
option in the
Run
As
menu. A new tab titled
Development Mode
will open at the bottom. Simply do
what the description preceding the URL says and double-click on it. Your default
browser should launch shortly after this. Then try to load the website that is hosted
on your local machine right now. Hence, the URL points to
127.0.0.1
, the infamous
IPv4 loopback address that is just another fancy name for this device or computer:
Keep in mind that using the URL suggested by Eclipse will run your WebGL
application in debug mode, which is excruciatingly slow for most games. Just remove
everything after the question mark in the URL to run your application in normal mode.
The resulting URL should look like
http://127.0.0.1:8888/index.html
.
You might be asked to install the
Google Web Toolkit Developer Plugin
for your
web browser to use the
Development Mode
, as shown in the following screenshot.
You need to install it to develop your local machine.