Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Very simple sample applet?  (Read 1107 times)
0 Members and 1 Guest are viewing this topic.
Offline Eli Delventhal
« League of Dukes »

JGO Kernel


Medals: 39
Projects: 12


Game Engineer


« Posted 2010-07-06 06:48:53 »

Hey all,

Up to this point I've used LWJGL purely for Webstart applications. I had a look at what you need to do to get it going in an Applet and couldn't find anything that was particularly simple. Pretty much what I'm looking for is a LWJGL skeleton Applet so that I can just tack stuff onto it as wanted. Example games, etc. are not desired as I don't want to deal with figuring out what needs to be stripped out and what doesn't, if possible.

Thanks a bunch.

See my work:
OTC Software
Offline bobjob

JGO Knight


Medals: 10
Projects: 6


David Aaron Muhar


« Reply #1 - Posted 2010-07-06 09:02:00 »

Iv been fiddling alot with the LWGJL AppletLoader. And am going to write a tutorial on "Getting the most out of your LWJGL Applet"

currently you use LWJGL in an applet as you would in a frame. The challenge comes when deploying the applet.
I just got a few un answered questions on the LWJGL forum about the applet, once i get them resloved Ill start with the tutorials.


My Projects
Games, Webcam chat, Video screencast, PDF tools.

Javagaming.org with chat room
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 50
Projects: 15


★★★★★


« Reply #2 - Posted 2010-07-06 12:32:22 »

Pretty much what I'm looking for is a LWJGL skeleton Applet so that I can just tack stuff onto it as wanted.

The default starting point is usually the the GearsApplet. Its pretty much the same as a normal applet except note how the canvas addNotify() and removeNotify() methods are used to create/destroy the Display and that the game and loop is run in another thread (from the applet). This is mostly done to make sure the canvas is ready before the display is created and if it does blow up for some reason, won't take the browser with it Smiley (at least on plugin1). Other then that the Display and LWJGL is pretty much used as a how you use a normal LWJGL native Display.

Iv been fiddling alot with the LWGJL AppletLoader. And am going to write a tutorial on "Getting the most out of your LWJGL Applet"

nice, looking forward to it.
Games published by our own members! Check 'em out!
Play the free demo of Revenge of the Titans!
Offline Eli Delventhal
« League of Dukes »

JGO Kernel


Medals: 39
Projects: 12


Game Engineer


« Reply #3 - Posted 2010-07-06 16:44:54 »

Cool, the Gears demo there looks like it'll do the trick just fine. I had to put in a classpath run variable (which I never had to do when running as an app in Eclipse) but that's no big deal. Thanks again.

See my work:
OTC Software
Offline bobjob

JGO Knight


Medals: 10
Projects: 6


David Aaron Muhar


« Reply #4 - Posted 2010-07-06 19:58:13 »

i have uploaded an applet shell as part of my tutorials, there still very raw (only finished the first 1), and need alot of improvement.

but the applet code is fine: Lesson01
the source code is at the bottom of the page

My Projects
Games, Webcam chat, Video screencast, PDF tools.

Javagaming.org with chat room
Offline Eli Delventhal
« League of Dukes »

JGO Kernel


Medals: 39
Projects: 12


Game Engineer


« Reply #5 - Posted 2010-07-06 23:36:11 »

i have uploaded an applet shell as part of my tutorials, there still very raw (only finished the first 1), and need alot of improvement.

but the applet code is fine: Lesson01
the source code is at the bottom of the page
Cool! Later I'll post the skeleton applet I made from the gears thing, with a fixed timestep loop included.

See my work:
OTC Software
Offline Eli Delventhal
« League of Dukes »

JGO Kernel


Medals: 39
Projects: 12


Game Engineer


« Reply #6 - Posted 2010-07-08 18:37:38 »

Looks like this:

http://sourceforge.net/projects/java-game-lib/files/Official%20Releases/LWJGL%202.4.2/lwjgl_applet-2.4.2.zip/download

Has the HTML, natives, and signed binaries for use in an applet file. Going to give it a try later.

See my work:
OTC Software
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (77 views)
2013-05-17 21:29:12

alaslipknot (89 views)
2013-05-16 21:24:48

gouessej (119 views)
2013-05-16 00:53:38

gouessej (113 views)
2013-05-16 00:17:58

theagentd (126 views)
2013-05-15 15:01:13

theagentd (113 views)
2013-05-15 15:00:54

StreetDoggy (156 views)
2013-05-14 15:56:26

kutucuk (178 views)
2013-05-12 17:10:36

kutucuk (178 views)
2013-05-12 15:36:09

UnluckyDevil (186 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.081 seconds with 20 queries.