[gameprogrammer] Re: C++ and DirectDraw

Well learning how to draw stuff is a good start, but you also want to learn
how to handle input and maybe sound.
You don't "move" the camera, it's just an abstraction, what you do is you
draw different parts of the drawing. So in Mario we draw the background
starting at (0,0) and stopping at the end of the screen. When mario moves
forward a bit (and the camera moves with him) we start drawing at (50,0) or
the likes, and stop at the end of the screen.
Now Mario has some tricks also, when mario moves forward the camera doesn't
always move with him, it's when he reaches a certain area of the screen
where the camera moves forward or backward.

On Nov 24, 2007 1:16 PM, Azeem Zaheer <azeem_841@xxxxxxxxxxx> wrote:

>  Hi.I have currently spent some time in programming.I have learnt C++ and
> DirectDraw(almost).
> What i want now is to make a 2D side scrolling game.I want to know what
> more do I have to learn
> and secondly how does the camera move in side-scrolling games esp. like in
> mario.
> Thanks.
> Azeem
>
>
> ------------------------------
> Explore the seven wonders of the world Learn 
> more!<http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE>
>

Other related posts: