realbasic-games
[Top] [All Lists]

Re: Ok...... tiles and Sprite Surface

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: Ok...... tiles and Sprite Surface
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Mon, 28 Jul 2003 11:51:04 -0700
At 1:11 PM -0500 7/28/03, Eric wrote:

Well what I meant was instead of spritesurface having a set 64 x64 tile, wouldn't it be better to have Sprite Surface not have a set tile size?

No, it wouldn't.

 I guess I don't know why Sprite Surface is set at a 64 x 64.

It has to be set at something. This is the size of the graphics block used internally to maintain the various graphics layers. It's quite possible for you to use an arbitrary tile size of your own (using code like what Seth posted yesterday), but as you can see, it's a lot more work. If you make your tiles the same size as what the SpriteSurface is already using for its internal caching, then your code is much easier (and the performance may be better too).

Best,
- Joe

--
,------------------------------------------------------------------.
|    Joseph J. Strout           REAL Software, Inc.                |
|    joe at realsoftware dot com       http://www.realsoftware.com        |
`------------------------------------------------------------------'

---
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>