Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (511)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (577)
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  
  [SOLVED]Applet design Question  (Read 1041 times)
0 Members and 1 Guest are viewing this topic.
Offline Cakey

Junior Duke





« Posted 2009-04-02 20:36:48 »

So, I am working on a new project(trying to keep busy).

I want to have text either appear on the screen as a HUD, but I don't really like that or I was thinking maybe I could do either of these two:

1. Find a way to pass the information to an external "text box" to the right of my GLCanvas(viewport), but I'm not exactly sure how to do that. I do know how to use Swing but I'm not sure exactly how to do it for applets, especially with a GLCanvas already on it.

or
 
2. Is it possible to pass information from an applet to say, PHP or HTML or JavaScript actively on a page? I wouldn't see how, or if it'd be worth it. I just figured I'd ask.

Just like exploring my options, and learning new things. The main reason why I don't want to do a HUD is just for FPS sake, and I want this to be a clean looking applet, not some Graphics class stretched around text HUD on-top of my already dodgey 3-D world.

Offline DzzD
« Reply #1 - Posted 2009-04-02 21:27:56 »

using opengl you should not have a lot of trouble with FPS for a simple HUD , no ? just disable zbuffer and draw it.

Quote
1. Find a way to pass the information to an external "text box" to the right of my GLCanvas(viewport), but I'm not exactly sure how to do that. I do know how to use Swing but I'm not sure exactly how to do it for applets, especially with a GLCanvas already on it.

and I am not really sure I undertand what you're trying to do Smiley


Quote
2. Is it possible to pass information from an applet to say, PHP or HTML or JavaScript actively on a page? I wouldn't see how, or if it'd be worth it. I just figured I'd ask.

look at liveconnect : JSObject or this.showDocument("javascript:alert('')")

Offline Cakey

Junior Duke





« Reply #2 - Posted 2009-04-02 21:37:20 »

For number one I mean this.

<img src="http://i310.photobucket.com/albums/kk420/SmaerdsDreams/Untitled.gif">
(sorry I had a little too much fun drawing that picture lol)
Have a GLCanvas and GUI (panel?). Do all GUI's work for all systems if they have the proper JDK? I had a friend who on Mac OS 10(I think) couldn't run a reallllly simple applet I made that literally just had a button and a text box. But on all windows versions it worked fine.


The second one seems complicated, haha.

I'm just trying to save on not really FPS but CPU and visual memory, I want this to be a fast load, a smooth run, and an overall nice presentation.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline DzzD
« Reply #3 - Posted 2009-04-02 21:45:18 »

good draw but you wont make a carrer in design Wink

so hum.. I can just say that "yes you can" Smiley

Offline DzzD
« Reply #4 - Posted 2009-04-02 21:46:17 »

you just have to size your GLCanvas and your gui component to half of the with , no ?

Offline Cakey

Junior Duke





« Reply #5 - Posted 2009-04-02 21:48:18 »

Hmmmmm, lemme look to see how I implemented the canvas then hopefully I'll get back to you with some proper news haha.

Oh dang you just broke my heart, coulda swore I just drew the next van gogh  Smiley.

Offline Cakey

Junior Duke





« Reply #6 - Posted 2009-04-02 22:06:44 »

Got it woo hoo! Thanks

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

 

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

The first screenshot will be displayed as a thumbnail.

Longarmx (50 views)
2014-10-17 03:59:02

Norakomi (39 views)
2014-10-16 15:22:06

Norakomi (31 views)
2014-10-16 15:20:20

lcass (36 views)
2014-10-15 16:18:58

TehJavaDev (66 views)
2014-10-14 00:39:48

TehJavaDev (65 views)
2014-10-14 00:35:47

TehJavaDev (55 views)
2014-10-14 00:32:37

BurntPizza (72 views)
2014-10-11 23:24:42

BurntPizza (43 views)
2014-10-11 23:10:45

BurntPizza (84 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
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!