Sunday, August 2, 2009

How do you do this in C++?

i really want to make a simple 2d game in c++ but i don't know how to actually write the code witch would make a character move around the screen. how can i do this. i watched a video on youtube with a guy that was typing code with the allegro library, and he made a charactor in paint and at the end he made this guy moving around the screen how do i do this in C++...im using devc++ i dont know if that can do it or not.





thanx!

How do you do this in C++?
To write a game like this you should understand the Model-View-Controller pattern and know a good bit about a graphical library package that you think will suite you. C++ might right to write this game in but there are other technologies that could ease you in a bit smoother (Java and Flash might be something to consider).
Reply:You can find some good tutorials in OpenGL (graphics library) from NeHe. nehe.gamedev.net. This is a good reference site if you are just starting out in C++ and it will give you the fundamentals of the graphics libaries, even 3d development. Basically create a picture, create a square and map the picture to it. Good luck ;)


No comments:

Post a Comment