Jump to content

  • Log In with Google      Sign In   
  • Create Account


Need an advice on GUI-HUD for my 2D game


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 sjeps   Members   -  Reputation: 160

Like
0Likes
Like

Posted 01 November 2012 - 03:19 AM

Hi everybody!

I'm developing a small (for now) 2d game with sdl and opengl.

I've reached the point i need to make a main menu, some options menus, a character-weapon selection screen, and some in-game hud (healt, ammos, modifiers, event texts like "you picked a treasure!"...).

So i need to render some text and images.
I've already tried successfully font libraries and so on.

Anyway i'm wondering: is there a simpler and more flexible approach to making all these things.
Like some easy to implement menus, counters, different size-color texts, etc..


I've looked in some GUI libraries, like CEGUI, but i'm wondering if it's the right approach..

I mean, i'm lookin for just some simple selection menus, nothing like draggable windows or resizable widgets. Also my game is using joypads, while i found most of these libraries mouse oriented..
And are they capable of rendering texts in a flexible or nice looking way?

I'm just looking for some advices

Sponsor:

#2 iwoplaza   Members   -  Reputation: 170

Like
1Likes
Like

Posted 01 November 2012 - 06:50 AM

I maked rendered text and own GUI for myself Posted Image. I can tell you how to do that.If you are interested , tell me and I will help you.

#3 sjeps   Members   -  Reputation: 160

Like
0Likes
Like

Posted 01 November 2012 - 08:00 AM

If you like to drop me some code, i'll surely dig in it!

Anyway i was looking for a more hud focused library, and simpler to make small menus..

#4 iwoplaza   Members   -  Reputation: 170

Like
1Likes
Like

Posted 01 November 2012 - 10:58 AM

Than let's begin. First I will show you how my GUI works and looks.Then you can choose what you want to learn. Here is my GUI:
Posted Image
And about library that is made for GUI. Like you, I've been searching the simple way to do it, but I couldn't find it. So I begun to make my own code to render these GUI things.
Tell me what things you'd like to learn.

Edited by iwoplaza, 01 November 2012 - 10:58 AM.


#5 ic0de   Members   -  Reputation: 804

Like
0Likes
Like

Posted 01 November 2012 - 05:18 PM

I use GWEN for the GUI in my game. It's a little difficult to figure out when you're first integrating it into your engine (you have to write your own renderer), but once it's in place its pretty lightweight and easy to use, pretty solid for buttons and the like.

you know you program too much when you start ending sentences with semicolons;





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS