Hello everyone! I hope this is the right place for this thread.
I need help to make a GUI for my game Alien Eyes Invasion!.
Right now I have a “GameGUI Entity” that it’s very much like any other entity in the game (the ship, the shots, the aliens). That entity has a sprite of 800x600 pixels with borders and a bottom bar for displaying the game’s info. Its center is transparent and the other entities check borders within it.
On the info bar, there is a text “Ship’s hp” and an “empty life bar” drawn on it.
Upon it, I draw 10 entities which holds “first”, “mid” and “last” health bar sprites, like this:
Picture of health bars:
First:
http://imageshack.us/thumbnmail.png
Mid:
http://imageshack.us/thumbnmail.png
Last:
http://imageshack.us/thumbnmail.png
Picture of how the GUI it is right now:
http://img59.imageshack.us/img59/6678/gamegui.th.gif
Picture of the game running (showing the health bar with some hits, allowing to see the empty effect):
http://img842.imageshack.us/img842/5748/gameplayd.th.png
The health bar is held in an ArrayList and depending on the Player’s hp, they are allowed to be drawn or not (boolean field on the HealthBarEntity object).
This approach lets me draw a decent game GUI and show the player’s life. But I hate it. I need help to make:
- Game Menu window (New game, Option…)
- In Game GUI to show Player Health, Current Level, Weapon Selected and the like.
Please point me to somewhere, I tried the search option in the forum before posting this but came to nowhere