[gameprogrammer] Re: C++ and DirectDraw
- From: "James Patillo" <james3@xxxxxxxxxxx>
- To: <gameprogrammer@xxxxxxxxxxxxx>
- Date: Mon, 26 Nov 2007 10:50:25 -0600
If you mean to use DirectX, you can check out this site:
http://www.toymaker.info/
It has a information on scrolling here:
http://www.toymaker.info/Games/html/2d_scrolling.html
but it basically works how Charlie Lobo said.
From: gameprogrammer-bounce@xxxxxxxxxxxxx
[mailto:gameprogrammer-bounce@xxxxxxxxxxxxx] On Behalf Of Charlie Lobo
Sent: Sunday, November 25, 2007 10:29 PM
To: gameprogrammer@xxxxxxxxxxxxx
Subject: [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>
- Follow-Ups:
- [gameprogrammer] Re: C++ and DirectDraw
- From: Yasser Gonzalez Soto
- References:
- [gameprogrammer] C++ and DirectDraw
- From: Azeem Zaheer
- [gameprogrammer] Re: C++ and DirectDraw
- From: Charlie Lobo
Other related posts:
- » [gameprogrammer] C++ and DirectDraw
- » [gameprogrammer] Re: C++ and DirectDraw
- » [gameprogrammer] Re: C++ and DirectDraw
- » [gameprogrammer] Re: C++ and DirectDraw
- » [gameprogrammer] Re: C++ and DirectDraw
- » [gameprogrammer] Re: C++ and DirectDraw
- » [gameprogrammer] Re: C++ and DirectDraw
- [gameprogrammer] Re: C++ and DirectDraw
- From: Yasser Gonzalez Soto
- [gameprogrammer] C++ and DirectDraw
- From: Azeem Zaheer
- [gameprogrammer] Re: C++ and DirectDraw
- From: Charlie Lobo