aspose file tools*
The moose likes Game Development and the fly likes Putting my Slick game into a website Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Game Development
Bookmark "Putting my Slick game into a website" Watch "Putting my Slick game into a website" New topic
Author

Putting my Slick game into a website

Tom Whitly
Greenhorn

Joined: Jan 11, 2013
Posts: 1
I have made a GUI in Java using State Based Game, as it extends StateBasedGame and not JApplet its not a true applet, I want to put it on a website and am unsure on how to do this, I have been told that the following code allows me to make this into an applet using html and not having to edit the Java code:



I found the code on a forum and modified it to work with my game, the link to the forum is http://ninjacave.com/slickapplet

I run that on html and get the following error message: org.lwjgl.util.applet.AppletLoader even though there is a AppletLoader class in my lwjgl.
If you can help me fix the above code then please tell me but if not possible please give me another method of putting my GUI onto a website.

Also, It may be worth mentioning, when I made my Java GUI, I had imported lwjgl and slick into eclipse, so I am assuming they are also in my racegame.jar file.
Phil Freihofner
Ranch Hand

Joined: Sep 01, 2010
Posts: 115
    
    1
Have your resolved this yet?

One thing I was thinking, Eclipse doesn't necessarily include library files in an export. But it is easy to verify whether or not lwjgl.jar and slick.jar made it to the export or not. You can rename your game file game.zip and inspect it.

I haven't run slick applets, but I do know the html for Java applets is finicky and tricky to debug. It is very easy to slip up with addressing, especially where complex package names have to be part of the address.

I can't tell if the error message you gave means the html was unable to locate the AppletLoader.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Putting my Slick game into a website