C++ graphics newbie help.

Started by
2 comments, last by infernapelover 11 years, 8 months ago
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
Advertisement
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)
Well, the whole of Tetris is described here:
http://colinfahey.com/tetris/tetris.html
Thanks theark

This topic is closed to new replies.

Advertisement