944,015 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Marked Solved
  • Views: 5071
  • C++ RSS
Jun 21st, 2007
0

how to design board games in c++

Expand Post »
Hi,
I have the basic knowledge in C++ and C. I am now looking for workign on some game programming.
Well, in C++ how can I get those buttons, text boxes frames etc as we have in Java or VB.
would you suggest me some books or links also, that can help me in this activity.

Thanks.
Reputation Points: 58
Solved Threads: 1
Light Poster
bvgsrs is offline Offline
33 posts
since Jun 2007
Jun 21st, 2007
0

Re: how to design board games in c++

Use MS Visual C++ (get Visual Studio).. you can find lotsa online tutorials for that..
Reputation Points: 254
Solved Threads: 74
Practically a Posting Shark
thekashyap is offline Offline
804 posts
since Feb 2007
Jun 21st, 2007
0

Re: how to design board games in c++

Here is a link to basic win32 api gui programming. It doesn't teach you how to write games but it does introduce you to adding buttons and other controls/resources to windows.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,953 posts
since Aug 2005
Jun 21st, 2007
1

Re: how to design board games in c++

> I have the basic knowledge in C++ and C.
Better start off with some console based games. They would help you in concentrating on the logical aspects of the game without wasting your time in developing the GUI.

Plus commercial games make use of API's like DirectX and OpenGL and not just plain old Win32. Once a console based program is ready, making a graphical version of it won't be much difficult.
Last edited by ~s.o.s~; Jun 21st, 2007 at 1:06 pm.
Super Moderator
Featured Poster
Reputation Points: 3233
Solved Threads: 720
Failure as a human
~s.o.s~ is offline Offline
8,872 posts
since Jun 2006
Jun 21st, 2007
0

Re: how to design board games in c++

During this year we (my college year) have covered far less than 60% of basic C++ syntax.. we never touched on pointers, structures, classes, namespaces or any modularization... whatever else I learned I learned as a hobby.

And yet, sometime in the third week of next year we will start using this graphics package: http://www.libsdl.org/
I guess what that says is that it must be relatively easy!

According to my next year's lecturer, there's only about 3 functions or something.. draw screen, draw sprite and something else.. it focuses mostly on your algorithms, and you need to have a decent knowledge of maths to use it..

Here is a link to someone's page from my college:
http://www.maths.tcd.ie/~wfoc/programs/
There you can download the game he made using this package, just as a taster of what you can achieve..
Reputation Points: 15
Solved Threads: 5
Junior Poster in Training
phalaris_trip is offline Offline
91 posts
since Apr 2007
Jun 21st, 2007
1

Re: how to design board games in c++

if your learning sdl look at some of my sdl functions under c++ code snippets. I think you will find them helpful. I know I do!
Reputation Points: 343
Solved Threads: 24
Veteran Poster
Sturm is offline Offline
1,067 posts
since Jan 2007
Jun 22nd, 2007
0

Re: how to design board games in c++

hi,
well when I was doing some google on this subject ... I came across these terms like OpenGL ... windows programming etc ...
so would one of you please let me know what actually is OpenGL and what are the tools IDE etc what we require to work with it.

is OpenGL different from Visual C++ ??? can the programs of OpenGL be compiled and executed using the Turbo c or are there are any seperate editors / compilers for the same ?

Thanks for all the links and suggestions that I have been receiving ....
Reputation Points: 58
Solved Threads: 1
Light Poster
bvgsrs is offline Offline
33 posts
since Jun 2007
Jun 22nd, 2007
0

Re: how to design board games in c++

Your concepts seem to be shaky.

OpenGL and DirectX are API's, or simply put, libraries which you can use in your program to render graphics on the screen. There are other alternatives, but these two, by far, are the best and famous. DirectX is exclusively used in almost all commercial games and is properietary to Windows.

Visual C++ is a tool, C++ is the language used for developing games and OpenGL is the API which provides the graphics rendering functionality. Your game in C++ won't look much different than a normal C++ with the exception of some API calls and mandatory entry point functions.

Considering that a primitive set of functions is provided by OpenGL and DirectX, beginners almost always make use of Game Engines which act as wrappers around these API and help in developing cross platform games(if OpenGL is supported by your game engine).

Read here for more information. But still, considering that the little information you have on this subject, it would be better to stick to console games for a while, till you get the real feel of _Game Development_.
Super Moderator
Featured Poster
Reputation Points: 3233
Solved Threads: 720
Failure as a human
~s.o.s~ is offline Offline
8,872 posts
since Jun 2006
Jun 22nd, 2007
0

Re: how to design board games in c++

if you really really want to get into graphics development, allegro is a very very easy API.

here for tutorials and here for website.
Reputation Points: 343
Solved Threads: 24
Veteran Poster
Sturm is offline Offline
1,067 posts
since Jan 2007
Jun 25th, 2007
0

Re: how to design board games in c++

Thanks for all the responses. They were quiet helpful. I am inching very slowly in the process of learning to program. Also one of links that was quiet helpful is http://www.daniweb.com/forums/thread50370.html
It contains hyperlinks to various topics on C and C++ programming.

Ram Sharma
Reputation Points: 58
Solved Threads: 1
Light Poster
bvgsrs is offline Offline
33 posts
since Jun 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Could someone please help me?(C++ Code)
Next Thread in C++ Forum Timeline: WinSocket question





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC