Hi !
Featured games (87)
games approved by the League of Dukes
Games in Showcase (671)
Games in Android Showcase (194)
games submitted by our members
Games in WIP (727)
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  
  Window components in tile-based game  (Read 1907 times)
0 Members and 1 Guest are viewing this topic.
Offline lemmy

Junior Newbie

Java games rock!

« Posted 2004-04-27 06:36:41 »

I'm building a tile-based game which should have menu/control windows around the edges of the screen, a bit like Baldur's Gate or Command and Conquer.
The windows need to be scrollable, and display text and html links.
Will my game's performance be badly hit if I use Swing or AWT (or SWT?) to draw these windows? Would making custom Swing components help? Is there a standard approach to this kind of thing?
Thanks for tips,

PS. Ideally I would like to make the windows collapsible, to reveal more of the game map underneath when they're minimised.
Offline Orangy Tang

JGO Kernel

Medals: 57
Projects: 11

Monkey for a head

« Reply #1 - Posted 2004-04-27 08:37:28 »

PS. Ideally I would like to make the windows collapsible, to reveal more of the game map underneath when they're minimised.

You'll have a hard time doing that with Swing/AWT widgets without it looking like crap. In fact you'll have a hard time using Swing/AWT stuff anywhere in a game and getting it to look good, it breaks the immersion and just screams 'application' rather than 'game'.

You could quite easily contruct some basic GUI widgets yourself to be drawn directly onto your game display, you're only going to be needing simple controls really.

[ - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline lemmy

Junior Newbie

Java games rock!

« Reply #2 - Posted 2004-04-27 09:43:06 »

Well, I misdescribed it, it's sort of a mixture of an application and a game  Grin
Isn't it possible to make custom Swing components with their own styled look?
I'll look into building something from scratch - but do you know if using Swing would have an effect on performance?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Seekely

Senior Newbie

I am java

« Reply #3 - Posted 2004-05-01 03:32:35 »

Even if Swing did not inccur an overhead, you  want to use it as minimally as possible.  As stated above, its just not good looking for games, even when you customize the Swing component.  

Save yourself the agony of trying to make Swing work for a 2D game and write/burrow custom components.  They will look a ton nicer and both integrate and work as you expect.  
An RPG like every other, except this one is made by me
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

IanParcs (43 views)
2016-04-18 14:18:53

KaiHH (42 views)
2016-04-18 08:35:41

KaiHH (73 views)
2016-04-15 12:43:58

theagentd (74 views)
2016-04-14 02:16:17

theagentd (88 views)
2016-04-14 02:15:43

IanParcs (102 views)
2016-04-12 03:51:16

IanParcs (45 views)
2016-04-12 03:50:03

IanParcs (41 views)
2016-04-12 03:49:54

IanParcs (37 views)
2016-04-12 03:49:52

IanParcs (47 views)
2016-04-12 03:49:52
Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17

List of Learning Resources
by SilverTiger
2016-02-05 09:39:47

List of Learning Resources
by SilverTiger
2016-02-05 09:38:38

List of Learning Resources
by SilverTiger
2016-02-05 09:35:50

Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30 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‑
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!