Qt creator

hey guys.

I made a RPG terminal game.Now I want to add some features to it.Someone recommended that i use qt. Unfortunately it needs to be done soon.Which means I wont have enough time.I would like someone to please refer me to an article or tutorial that strictly deals with making features for c++ code.

Thanks.
What features do you want to add?
Basically, I want to add a gui.I have no experiance with that sort.This will be my first time moving from console and trying something new.My game is a mission game, where the survivor fights against enemies. I would also like to show the bullets moving, make the enemies appear real.Like any other RPG interface game.

Some ideas will come as I implement some.

Sorry, when you say "add a GUI", could you elaborate on that?

If you mean a text-based game with buttons/sliders/menus/etc for interaction, then sure, Qt will work great. Some examples and tutorials can be found here: http://qt-project.org/doc/qt-5.1/qtdoc/qtexamplesandtutorials.html
However, since you mentioned moving bullets, I don't think this is what you meant...

If you mean a game with 2D graphics, then while you could work with Qt it'll be a lot more tedious than if you had used a library meant to produce 2D graphics. A lot of veteran members of this forum have a preference for SFML. See if it works for you: http://www.sfml-dev.org/

If you mean a game with 3D graphics, well that's going to be an absolute headache for a beginner and I absolutely positively do not recommend going this route from the start. Sorry. :)

Edit: Dem typos.

-Albatross
Last edited on
closed account (Dy7SLyTq)
can you do 2-d style graphics with sfml? i thought it was more controlling whats drawn to the window and then audio, some system level routines, and networking

edit: you would need something like tgui for the menu and then ogre/allegro/opengl for graphics
Last edited on
closed account (3qX21hU5)
can you do 2-d style graphics with sfml? i thought it was more controlling whats drawn to the window and then audio, some system level routines, and networking


Yes... SFML is mainly a graphics library with added features like networking, sound support, ect. Here is all the main modules which should give you a idea of what it can do http://www.sfml-dev.org/documentation/2.1/modules.php the main graphics will be in the graphics module http://www.sfml-dev.org/documentation/2.1/group__graphics.php .


edit: you would need something like tgui for the menu and then ogre/allegro/opengl for graphics


Not really sure what you are trying to get at with this... tgui is a library forbuilding GUI's in SFML and it will not work with orge or allegro...

Though you can quite easily create some very a very simple GUI framework in SFML. Most likely all he would need for GUI components would be labels, buttons and maybe a textbox which shouldn't be to hard once you get used to the SFML library.
Last edited on
closed account (Dy7SLyTq)
my bad i was misspoken. i was more lumping it with opengl than tgui. just to show different options for 3d libraries
closed account (3qX21hU5)
Anyways @ngopza I agree with Albatross on this one. From the little information you have given it sounds like you are more looking to make a 2D game and QT probably wouldn't be the best of choice to do so.

QT is more geared towards making GUI applications (Like A notepad or a calculator, or a email client or stuff along those lines). Though QT does have support for what you are looking to do (Here is a tutorial that uses QT or I should say QML to create a game in QT http://qt-project.org/doc/qt-4.7/qml-advtutorial.html ) it probably isn't the best library to choose for game development.

I would instead like Albatross said take a look at SFML or if you don't like that you can check out others like SDL 2.0 or Allegro.

If you have more questions you will most likely have to provide us with more information on exactly what you are trying to do. Try and be as detailed as possible also. But wish you the best of luck.
First sorry for the late reply.Guys I need a 2d game.I made the game and it works well on the terminal.All the programs I did were terminal based. Now I need to transform my code 2 make a 2d game."Ways the fun when you don't even see when you kill an enemy, but all you see is it disappearing".

Something a beginner can be able to use effectively.

Thanks for your input and sharing your knowledge.
Regards
speaking of 3d games when would you recommend getting started into 3d programming. (i was planning on it when i finish my 2d game but i want to know when you guys think i should)
Last edited on
Make several 2D games and make sure you have the 2D concepts and everything down pat because 3D is a whole other beast that builds on your 2D knowledge, but does so where it can be majorly confusing.
You can actually do 2d and 3d graphics in qt. The 3d uses opengl I believe. I bought the book a while back for like 50$ then found out the book is free online :P http://grimaldi.univ-tln.fr/Qt/C++-GUI-Programming-with-Qt-4-1st-ed.pdf
@giblit
I can saw off my legs to lighten my body to make it easier for me to use a jetpack too. What's your point?

-Albatross
My point is if he wanted to do graphics in qt he could.
Well I've been told that you can use Qt to make the window and then use OpenGL/Allegro/SFML/SDL to do the game and have it draw to the window. Though, I've heard it may have a few hicups, but hicups in programming are just challenges to figure a solution to.
BHXSpecter wrote:
I've been told that you can use Qt to make the window and then use OpenGL/Allegro/SFML/SDL to do the game and have it draw to the window.

Yep, you can do that, although it may be difficult and there'll be a bit of overhead (probably only a couple of fps, especially in a small game).
You can load images in qt just like the other image libraries though it probably isn't the most practical. There are bunch of QML demos and stuff on the nokia website also when you download qt it should come with the demos and examples program.

http://harmattan-dev.nokia.com/docs/platform-api-reference/xml/daily-docs/libqt4/demos-declarative-snake.html
OP said:
Unfortunately it needs to be done soon.


This will be your biggest problem. Even after you learn how to code it you still have to draw everything. There is a reason that even Indie games have art directors. You can try to look for something here: http://opengameart.org/ but I doubt you'll find everything you need quickly. Remember to give credit where it's due.
I have to agree with Computergeek01 on this one. You need it to be done soon, but programming is never fast. You will have to do more reading to get an understanding of what you want to do and then work at implementing it. If you can't do images, then you will have to get an artist to do them or use free art like the link he posted.
Need it done soon?

*cough* Red Bull *cough*
Topic archived. No new replies allowed.