Jump to content

  • Log In with Google      Sign In   
  • Create Account

C++ graphics newbie help.


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 infernapelover   Members   -  Reputation: 160

Like
0Likes
Like

Posted 18 August 2012 - 01:27 PM

I've started c++ 6 months ago. I have made many text based games. I want to start making graphical games now. My target, a tetris game. I started learning a little directx, maybe not the best idea for a newbie. 1) does anybody know a good tetris tutorial.
2) a good multidimensional array tutorial
3)question:to make a game map, like one In an RPG,what would be the requirements, how would I put it into a game. Could I just draw it in paint or would I need to use a program or something else.
Thanks in advance, any answer is helpful

Sponsor:

#2 thedevsykes   Members   -  Reputation: 336

Like
1Likes
Like

Posted 18 August 2012 - 07:23 PM

Here is some information I managed to find searching through google:

http://www.cplusplus.com/doc/tutorial/arrays/
http://www.gamedev.net/topic/192483-tetris-clone-in-an-hour-with-c/
http://openglgui.sourceforge.net/tetris_tut1.html

I can't see a problem with going in and learning DirectX. If you find it hard to work with though, there are plenty of alternatives. Try SDL, or I believe some people on here refer to SFML. And to make a map, well that depends, are you referring to a 2D map?

If 2D, then i'd use a tilebased system, using multidimensional array to hold the tile, and looping through and rendering. You could also go down the Isometric route, if you wanted to do something more like Diablo. GameDev.net actually have a book, Beginning Game Programming (Chapter 6 and 7) which explains this quite well. In practice though, you could define the level information in an external file, and use C++ to load that data from the file, that way to create/update a new map, you wouldn't need to recompile your code.

Good Luck.
'Knowledge isn't key, but understanding...'

My qualifcations are not here to showcase, but for those I answer and ask, to get a better idea on my knowledge.

BCS Level 2 Certificate for IT Users (ECDL Part 2)
OCR Level 2 National Award in Business
Level 2 First Diploma in Media
Level 3 Diploma in Games Design and Development Extended
BSc Hons in Computer Games Programming (Current - 1st Year)

#3 Dragonsoulj   Crossbones+   -  Reputation: 2110

Like
0Likes
Like

Posted 18 August 2012 - 08:26 PM

Well, the whole of Tetris is described here:
http://colinfahey.com/tetris/tetris.html

#4 infernapelover   Members   -  Reputation: 160

Like
0Likes
Like

Posted 19 August 2012 - 12:47 PM

Thanks theark




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS