Jump to content
  • Advertisement
Sign in to follow this  
skwee

GUI in games. What do you prefer?

This topic is 4041 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey. I have some general question. Lets say you developing a game. I'm almost sure you need to implant GUI system to you game (main menu, options, setting or whatever). So you have 4 choices: 1. Use a ready GUI (like paragui, guichan if you use SDL). 2. Write GUI by yourself (specially for this game/app). 3. Use GUI you already wrote for your last game/app. 4. Freeze you game/app developing, and write your own GUI system that you will use in all your project. So what do you prefer? [Edited by - s.kwee on June 26, 2007 7:36:17 AM]

Share this post


Link to post
Share on other sites
Advertisement
Um, 4. Partially write my own using interfaces only.

Then use a few addapter classes that call the real implementation. That way I can swap out the back end of the GUI. Because I really like writing my own first to understand what's needed to get it all done and appreciate the work that went into somebody elses system. One that works, and possibly better then my own home brew.

Share this post


Link to post
Share on other sites
Actually wanted to add 4 but 4 is inside 2 and 3 :)
Any way I edited the first post.

More replays ppl :)

Share this post


Link to post
Share on other sites
I'd prefer writing it myself and refactoring it for my next projects because I really feel programming a GUI is one of the interesting part of making a game (engine). Of course if I actually wanted to make a game I would never waste time writing one myself. It's very hard to beat existing GUIs and even if you manage, then it will only be by a little bit.

Share this post


Link to post
Share on other sites
I finally did write one for my last mini project. Again, that was me underestimating the size of having to do it. It took a considerable amount of time to get done. It was almost as much time to get it mostly complete as the game itself. Generally because I made it pretty much how I wanted to make it. It was a learning experience for sure.



I'll go with substitute option 4 then :/. When I was brain dead from working on the same thing for too long and I jump to a different project due to lack of energy. I'm a scatterbrain of sorts sometimes. So, I did freeze game development and tried my hand at the interfaces... it was like it was a totally seperate system. I was, for a while, reenergized to code. The bonus about this is that it was something that folded back into the game that I ran out of energy coding. So the game got a pretty front end to boot... and it's seperated for reuse later.

Share this post


Link to post
Share on other sites
Quote:
Original post by CTar
I'd prefer writing it myself and refactoring it for my next projects because I really feel programming a GUI is one of the interesting part of making a game (engine). Of course if I actually wanted to make a game I would never waste time writing one myself. It's very hard to beat existing GUIs and even if you manage, then it will only be by a little bit.


I also vote for this.

Share this post


Link to post
Share on other sites
gameswf (or, if you have the budget, Scaleform Gfx). Then the GUI can be designed in Flash, and finding a Flash designer these days is easy. Hell, avoiding a Flash designer (or the ubiquitous "graphic designer" hipster) is harder!

Share this post


Link to post
Share on other sites
I tend to like to use what's out there if it's good, so I don't have to reinvent the wheel, but if nothing is suitable, I'll settle for option 2 and write a GUI system for the game/app I'm writing. Since I'm already making a framework for myself, option 4 is out for me.

- Jon

Share this post


Link to post
Share on other sites
I definitely write my own. :) But it's a learning thing for me. In my larger game I'm making there is no GUI with the functionality I need (for that specific language). If you're in that case then you kind of have to make your own.

I'd say if you've never created a GUI before then you should give it a go.

Share this post


Link to post
Share on other sites
I'd write my own. For learners, it's a great chance to make practical use of OO design - since GUIs are extremely well suited to it.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!