Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: What is better for pure GUI game project?  (Read 1935 times)

0 Members and 1 Guest are viewing this topic.

SuperToaster

  • Newbie
  • *
  • Posts: 1
    • View Profile
What is better for pure GUI game project?
« on: September 18, 2015, 02:42:45 am »
Hello. I want to create a text-oldschool-like rpg game with turn-based combat system in SFML.

At first i was writing it in pure c++ but it was too limiting so i decided to add some graphics and sound to it and so i moved my project to SFML. I had some experiment with SFML and wrote pong game on it so i understand a bit how it works.

In my game i wont need any animations or maps. Just pure GUI with buttons, text fields and pictures. If i'm right i would need some GUI library for that and there are plenty of them out there. So can you please recommend me one which is best for my project?

Also can you please tell me how can Qt be used with SFML and why is it used together(i just saw some tutorial on linking it)? I know Qt so perhaps i could use it instead for my project as it doesnt require some special game engine.

Thanks in advance.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10848
    • View Profile
    • development blog
    • Email
What is better for pure GUI game project?
« Reply #1 on: September 18, 2015, 07:42:46 am »
If you only want s UI and you use Qt then there's little gain in mixing it with SFML's window or graphics module.

As for UI libraries, check out the FAQ on the GitHub wiki and take your pick. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

GraphicsWhale

  • Full Member
  • ***
  • Posts: 131
    • View Profile
Re: What is better for pure GUI game project?
« Reply #2 on: September 18, 2015, 11:18:57 am »
I wouldn't use Qt for making a game.

For GUI, while I haven't tried it, SFGUI looks promising: http://sfgui.sfml-dev.de/

I personally wouldn't recommend using any sort of GUI library outside of menus and the like, because they don't really "fit" with how games typically work. And I assume you'd want to possibly add some fancier (relative to a text-based game, that is) stuff like showing sprites representing the characters during a battle, something that may be tedious to do with a GUI library instead of simply drawing it to the screen normally.

Turbine

  • Full Member
  • ***
  • Posts: 102
    • View Profile
Re: What is better for pure GUI game project?
« Reply #3 on: October 21, 2015, 11:54:33 am »
I've spent a lot of time using various GUI libraries with SFML - there's still not a perfect solution imo.

We used to use SFGUI and moved to CEGUI, for the most part it has more features and is suitable for a game. However they are both quite generic and have minimal integration with SFML. The API's on both include methods which could be simplified significantly - at the probable expensive of compatibility.

Using either of these are not as intuitive or as efficient time-wise to write as SFML could be on the fundamental level. But at least CEGUI can be themed in amazing ways and has widgets for almost everything.