Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (623)
Games in Android Showcase (176)
games submitted by our members
Games in WIP (676)
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 1812 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.

KaiHH (6 views)
2015-10-06 20:22:20

KaiHH (11 views)
2015-10-06 19:41:59

BurntPizza (17 views)
2015-10-06 19:04:48

basil_ (44 views)
2015-09-30 17:04:40

shadowstryker (22 views)
2015-09-29 15:55:06

TheSpaceHedgehog (28 views)
2015-09-29 01:58:48

GamerC4 (54 views)
2015-09-24 21:10:38

GamerC4 (71 views)
2015-09-24 21:09:48

htuy (28 views)
2015-09-24 04:57:24

htuy (38 views)
2015-09-24 04:56:35
Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11

Rendering resources
by Roquen
2015-08-17 12:42:29

Rendering resources
by Roquen
2015-08-17 09:36:56

Rendering resources
by Roquen
2015-08-13 07:40:51

Networking Resources
by Roquen
2015-08-13 07:40:43

List of Learning Resources
by gouessej
2015-07-09 11:29:36 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!