Ok…some of my ideas of game development are a bit dated. :-[ I have only done game development at a hobby level, and the last time I put any significant time into it was in the Win32 days (prior to DirectX). I’m trying to get back into it and some of that involves un-learning what is no longer appropriate. So…
My project (as I’ve mentioned in a couple other threads) is a strategy game along the lines of Civ, Master of Orion & Heroes of Might & Magic (community building, resource management, etc). The core UI is a “command center” screen that gives you high-level info and lets you click off to other screens or pop-ups for details. I have considered using AWT for doing the interface, but I really don’t think that’s the most appropriate method.
In the “old days” many such games used a single bmp for all the static graphics on the UI. This had “cut outs” for buttons, resource counters, a main map, etc. You then had other images for those objects and when the user clicked on the screen you determined if the coordinates for that click were within the bounds of one of your buttons and executed the code for that. Additionally, you can add miscellaneous sprites for eye-candy (flashing lights, background movement, etc).
It would seem to me that this is still a valid implementation. No need to worry about chopping my main Frame into smaller containers. A single listener could handle all mouse events (from what I’ve tried so far). Drag-n-drop may be easier to implement (I haven’t tried this yet)…etc, etc. Now, as admitted I might be overlooking a great oportunity w/ AWT, or I may be causing myself unnecessary headaches going down this road.
Any feedback, opinions or experience is greatly appreciated.
-Lawrence ???