Learning C++ & STL by doing game programming project? [closed] - stl

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I've been coding with c++ for last 3 years, mostly my work revolved around using other libraries such as QT. I recently realized that for a guy who has been coding for 3+ years I dont really know much C++, cause I dont know much about Templates or STL or Boost.
To remedy it I decided that I shall learn new C++ feature and STL, then I stumbled on this excellent thread Learning C++ using a template. Which basically says that I should learn STL before anything else.
Now game programming is something I wanted to do from my undergrad days, I even wrote one flight simulator game for my project, but after some time it was discontinued.
My question is should I go on and try to make an opengl game, or try some text based game to learn C++. Would learning opengl be so hard an effort that it would distract me from actually learning C++. Also if not does somebody has some other idea ?

The STL and Boost are used in almost every C++ program, you don't need to go to the videogames domain just to learn that... Videogame programming is a very complex application domain. Nevertheless, if game programming is what you enjoy the most, go for it. I'd recommend starting with SDL instead of OpenGL, it's a higher level API. Another thing I recommend, start making a simpler game, like a Tetris clone for instance, and then move on to more complex types of game. A page I highly recommend for your game programming needs is GameDev.net

Related

How much pygame is strong (for doing big games...) [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I just tried to learn pygame, and its really fun module to learn.
But, i wondered how strong is this module?
Can i (just for example) create "warcraft 2" game with it and pygame will hold the all graphic and things like that?
If not, so what languages is strong enough to do a strategy games with?
And - what is the power of pygame.
Is there any limitations?
I understand from friends that cpp is my answer.
But i want to hear it from you and with a bit more information.
It is a little hard to tell from your questions wording, but I believe you're asking: 'Can Pygame be used to create high level 3d graphics games?'
If that is your question, then no, it cannot. Pygame is not designed to be used to make high level 3d graphical games. Pygame is however, built upon the SDL library, which can support creating 3d graphical games.
Also there is no 'cpp' game creating module, so assume you mean C++. You friends are right though, C++ is really the best language to go with if trying to make a graphics intensive game. But before you go off trying to create a game from scratch in C++, with the graphics library of your choice, why not use a already engine game engine such as Unreal or Unity. You'd make your game much quicker than you ever would starting from scratch.

What Flash Framework For Soccer game? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm a new Flash games developer, i just created my first game in Flash using FlashPunk, it was great, now i'm supposed to create a single player vs cpu soccer game, exactly like this one : Kung Foot.
As i said, i find FlashPunk a good Framework, but i'm opting for better performance and heavy graphics, i'm actually think about either Citrus or Flixil.
They both use Box2D for collisions, but i've heard that Citrus would be the right choice if it was a platform game.
I don't know if there are any other well documented Frameworks out there, what do you think !
I think starling is best decision in your case.
Citrus isn't really an engine as much as it is a collection of other tools to make development easier. It takes a rendering engine (like starling or away3D) and a phyics engine (like nape or box2d) and bundles them together for you, providing some functionality to make the process of using them easier. (Like the ability to add a virtual joystick to the screen in one line of code. However, you could do all of these things on your own and be just as successful.
If you plan on using Citrus, be very careful. It's great for getting stuff up and running quickly, but the documentation can be very iffy sometimes. For example SimpleCitrusSolver is used in a lot of their tutorial documentation, but it is broken in newer versions. I recommend reading about the logic behind every library function you use from citrus, instead of letting it be a magic library that does nape and starling for you.
As far as what framework is the best, it's really a personal choice. They all will let you accomplish the things you want to do, just go with what feels the most comfortable.

Teaching and making programming exciting to the novice [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I wanted to teach programming to a complete novice ( somebody who has a bachelor's degree in arts but never into programming).
I tried to introduce python but the response was something like, " Okay, it prints 1,2,3,.....or yes, it does fibonacci series but what is a use, I can do it easily, or my calculator does it, how is it useful". I tried to sell the grand idea with saying that, "Hey, you see the MS Office you use, it uses the same concept." but it did not work. Simply speaking, I could not create or show anything to appeal the novice into getting interested in programming. I showed the GUI I created using wxpython but was horrified to see that the code I wrote gave the novice nothing but horror.
Can anybody suggest a programming teaching approach or something related to programming or even some easy code that will make the novice believe that programming is cool, easy and fun to learn?
Well, unless you're a natural born math-head, recurring patterns of numbers aren't cool.
There's a reason why the canonical thing to start children off with is either turtle graphics, or games programming: it's at least vaguely concrete, and it is open-ended.
Other things people like to make are websites. Some kind of widget-based website framework might appeal.

desktop app gui design - best tool [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
i'm working on a project - an office information management system,
the database is a MySQL database, and now i have to build the front end GUI.
already I drawed a model of a screen example with PP (from total of 15 in my system),
my question is how to build the GUI? which tool/language is simple and easy to learn?
i thought about C++ but i no experience with it...
the information have to be retrived from the DB, read, write, queries, and so on.
will be happy to read your thoughts
![Powerpoint initial model][1]
The implementation that should come to your mind is one in a programming language you know. You can program this in many languages:
Visual Basic. If you already know it, this can be the fastest. Start the IDE and put together a forms project for you DB app.
Java. Many people know Java and you can pick it up in a matter of days and you're likely to have use for it in several projects. A Swing or AWT project that you build in Eclipse or Netbeans with the DB driver for the DB connection will work.
Python is also a popular choice. You can use the library tkinter to make quick GUIs.
C/C++ will also work. But if you don't know C/C++ already you might want to build GUIs with higher abstraction.
A web application with CSS/JScript using some Javascript framework to do DB i/o. But from your question it definitely seems that you want a desktop app.
Use this project to learn a new language. You might not know Lua, Haskell, Clojure, Scala, Kotlin, Fantom, Erlang or some other tool that you don't know how to connect to MySQL with, then it'll be good practice to do so in a new language.
Any of the above will work and if I faced this project I would use tool of the above.

Learning graphical programming (i.e. game programming)? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm a pretty competent programmer, finishing my second year in university.
I am well versed in C and Java, and know a little Python as well.
However I've always wanted to create games. I don't know if thats the job I will end up having, but its definitely a hobby I want to be able to pursue.
When i look at the task of creating a 3d game (a non-trivial one), I believe I could create the 'engine' for the game. That is, the underlying code which controls the function of the game.
However, I have no idea how to create the graphics.
So my question to the community is what would be an appropriate place to start learning this?
Are there any good tutorials or sites to visit which assume I'm working with little previous knowledge?
Also, suggestions for perhaps a quicker method of creating the graphics would be appreciated. For example, i understand opengl has quite the learning curve (correct me if I'm wrong), and as a hobbyist, I'd like to see results sooner rather then later. However if there is a really thorough opengl tutorial, then that would be great too.
Thanks!
If you want to learn OpenGL, go straight to the source:
http://www.opengl.org/documentation/red_book/
Decide what you want in your engine, and a quick search in the red book will tell you what you need to do and how to do it. It's an amazing reference that EVERY OpenGL programmer should have.
And if you don't want to buy it, they have older (but still useful!) versions on the web (at the link I posted.)
I actually have two copies of it because (when I was doing OpenGL) I used it that much I needed at work and home.
I'd suggest XNA for an easy yet powerful way into game programming. You get the benefits of C# and .NET, with access to DirectX functionality without having to delve into the lowest layers of implementation.
If you really want to go 3D, you should start by learning to use an existing engine, like Ogre 3D or start playing with the Unreal Development Kit or Unity.
It all depends on your objectives. My advice is to start small (think Pong, Breakout, Tetris, etc...) before tackling bigger games.