Welcome to Dream.In.Code
Become an Expert!

Join 149,594 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,858 people online right now. Registration is fast and FREE... Join Now!




How can I use C++ 2 make a game?

 
Reply to this topicStart new topic

How can I use C++ 2 make a game?, a silly Qs..??

Smart Boy
10 Oct, 2007 - 01:52 AM
Post #1

New D.I.C Head
*

Joined: 7 Oct, 2007
Posts: 11


My Contributions
Hi every 1,
i'm a beginner @ c++ , and I know how 2 programme diff. progrmms by using [Visual Basic c++]
but I don't know how 2 use the language 2 make a game!!
should I use another programme or what?? rolleyes.gif
THNX ALOT smile.gif
User is offlineProfile CardPM
+Quote Post

Martyr2
RE: How Can I Use C++ 2 Make A Game?
10 Oct, 2007 - 02:42 PM
Post #2

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,655



Thanked: 313 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
Well to start making games you could use VC++ like you are. Remember that games are just a bunch of graphics, pictures, sound etc. So you are going to need to use functions and graphics you make to put the game together. I would suggest you first write out what your games is on a piece of paper and how it all works. Write out all the details you could possibly think of with regards to how the game would work. What are the characters? What is the plot? What does it take place and when? How does money or an economy work? Stuff like that.

Once you got all that put together then you will have an idea of how you might want to layout the project. Then you can start coding. Use functions to draw on a background, perhaps draw some objects that a sprite can move around and write hit collision.

Do remember that a game can be an advanced project for someone just learning the language. So make sure you read up all you can on the language and during that reading you will see functions that you know you could use in your game.

If you want more resources on C++ like tutorials and such, you can check out the following thread:

Free ebooks here on DIC

Remember to take baby steps learning the language, develop a few small applications and build your way up to the game.

Enjoy! smile.gif
User is online!Profile CardPM
+Quote Post

Smart Boy
RE: How Can I Use C++ 2 Make A Game?
11 Oct, 2007 - 07:48 AM
Post #3

New D.I.C Head
*

Joined: 7 Oct, 2007
Posts: 11


My Contributions
hello Martyr2,
thnx 4 ur reply.. it's help me of cours
but I want 2 know how 2 connect with the charecters (pics of my game) and c++
let say that I draw a pic1.jpg ..how I will name it & control it by c++??!!
my last line in c++ in programming was showing the programme in the dark screen of vb c++ !!
PLZ:
can u list 4 me the programs that I need 2 mak my 1stgame & the use of each of them??!!
sorry 4 bothering u ..and thnx alot wub.gif

This post has been edited by Smart Boy: 11 Oct, 2007 - 09:14 AM
User is offlineProfile CardPM
+Quote Post

_net
RE: How Can I Use C++ 2 Make A Game?
11 Oct, 2007 - 10:02 AM
Post #4

D.I.C Head
**

Joined: 22 Sep, 2007
Posts: 146



Thanked: 1 times
My Contributions
Dude whats with the PLZ, 2 or 4 confused.gif how hard is it to type to or for.

You have a long way to go. C++ isn't a kiddie material.
User is offlineProfile CardPM
+Quote Post

Smart Boy
RE: How Can I Use C++ 2 Make A Game?
12 Oct, 2007 - 02:40 AM
Post #5

New D.I.C Head
*

Joined: 7 Oct, 2007
Posts: 11


My Contributions
Hello net,
it's just (to) save the time ( for ) other things that are more important
and how hard (for ) you (to ) reply (to) my Question??!!
User is offlineProfile CardPM
+Quote Post

Jrodan
RE: How Can I Use C++ 2 Make A Game?
13 Oct, 2007 - 12:25 AM
Post #6

New D.I.C Head
*

Joined: 12 Oct, 2007
Posts: 2


My Contributions
First off, Basic would be, by far, an easier language to program a game in. But C++ is still quite possible, if you don't mind spending some extra time. First off, are you planning on 2D or 3D? That will make a huge difference. Here are some websites that should help you deside:

http://www.riemers.net/eng/Tutorials/Direc...eries1/tut1.php
//This is the best tutorial I have seen on DirectX C++ 3D game programming, although it does not go very far, it SHOULD get you start. This is probably the lengthiest way to program a game, but you *could* do anything you want (motion blur, HDR, etc).

http://alleg.sourceforge.net/
//For a less involved approach. I definatly recommend looking into it.

http://www.ultimategameprogramming.com/
//I have not looked into OpenGl much or 2D programming, but this site has everything.

There are tons of way to program games, but not all are free, and there is a time-control corallation in programming methods. Little time = little control. (Ex: a map editor)

After reading through those websites you will probably know what you are looking for and what specific questions to ask.


User is offlineProfile CardPM
+Quote Post

Smart Boy
RE: How Can I Use C++ 2 Make A Game?
13 Oct, 2007 - 05:48 AM
Post #7

New D.I.C Head
*

Joined: 7 Oct, 2007
Posts: 11


My Contributions
thnx jordan,
I will try 2 loook up @ these sites & i will tell u the result
thnx alot..
User is offlineProfile CardPM
+Quote Post

Jrodan
RE: How Can I Use C++ 2 Make A Game?
13 Oct, 2007 - 09:54 AM
Post #8

New D.I.C Head
*

Joined: 12 Oct, 2007
Posts: 2


My Contributions
Sure, good luck! Here are a few other websites:

http://www.retroremakes.com/forum2/showthread.php?t=266
//Definately read this forum, it will describe many of your options.

http://www.freeprogrammingresources.com/cppgraph
http://www.google.com/Top/Computers/Programming/Games/
http://msdn.microsoft.com/archive/default....cs_tut_1icz.asp
//You may be able to use these resources.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 11:15PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month