> >I have some questions about Joe's Platform demo.
> >1) What is GravSprite and SpriteWrapper for?
>
> GravSprite represents a sprite that's subject to gravity.
> SpriteWrapper is, well, a wrapper class for a sprite. At the time
> that was written, you couldn't usefully subclass sprites; if I
> started over today I'd probably use a Sprite subclass instead.
Ok so make GravityClass, make it the super of HeroClass.
So when the Hero jumps or falls, GravityClass takes care of it?
So whats the minum version of Rb for usefully subclassing a Sprite?
> >2) What is kWorldPixels = 6400 and kWorldTiles = 100 for?
>
> These define the width of the world, in pixels and tiles.
Ahh ok. Thats what I thought. For some reason the "k" threw me
off for some reason.
Now since my maps = one level (which the size could very - width wise)
and the size of it is contained in with in the map data do I need
something like this?
> >3) Why is the Super of Player, GravSprite, and the Super of
> GravSprite, SpriteWrapper?
>
> Because the player is subject to gravity, and gravity sprites are a
> specialization (subtype) of sprites in general.
Ahh makes since.
Thanks
Eric
________________________________________________________________
The best thing to hit the Internet in years - Juno SpeedBand!
Surf the Web up to FIVE TIMES FASTER!
Only $14.95/ month - visit www.juno.com to sign up today!
_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|