realbasic-games
[Top] [All Lists]

Re: tiles and Sprite Surface & Draw

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: tiles and Sprite Surface & Draw
From: Eric <cire- at prodigy dot net>
Date: Mon, 28 Jul 2003 12:56:35 -0500
> Subject: Re: tiles and Sprite Surface & Draw
> From: "Joseph J. Strout" <joe at realsoftware dot com>
> Date: Sun, 27 Jul 2003 12:19:26 -0700
>
> At 11:51 AM -0500 7/27/03, Eric wrote:
>
> >  > Are you sure you want to draw the tile at (ypos, xpos)? Shouldn't it be
> >  > (xpos, ypos)?
> >
> >Normally yes...but when I did that the tile were not drawn at the right 
> >place.
>
> Actually it should be (0, 0).  The xpos and ypos tell you WHAT to
> draw (i.e., which tile), not where to draw them.  The graphics system
> is already set up for you such that 0,0 is the left/top corner of the
> area you need to draw (and the width and height of that area are both
> 64).
>
> Did you see my earlier reply in this thread?
>
> Best,
> - Joe
>

Ok  I think I kind of understand.  So basicly xpos and ypos are saying
"ok from the map use this tile"  then draws it at 0,0 and SpriteSurface
will know where to draw the next tile with out me telling it.

Is that close?




---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
.


<Prev in Thread] Current Thread [Next in Thread>