[SDL] Where SDL goes in your game

Armond armond.sarkisian at gmail.com
Thu Nov 9 00:28:16 PST 2006


> 
> Hi, There:
>    This really took my attention. I have some answers but not truths.
>    I throw them for the sake of discussion.
> 
> > - GameObjects  ( super-class )
> 
>    I have a similar thing with methods to draw it at some position in the 
game world, and to update it every few
> frames. Yes, sometimes I need to downcast a GameObject to a derived class, 
but the books of C++ I read tells
> this is quite unavoidable in some circumstances. This is a limitation of C++ 
type system, I think. And C
> type system is not better ...
> 
>    

Hi Facundo,

Yes, I believe I will take the (A) route and create one struct/class that will 
handle all my SDL needs. Also, another lesson I learned is not to go class-
crazy. I will try to keep things simple and minimal but effective. Just in the 
past, I had a lot of problems with scope but hopefully I will create this new 
design which will solve that problem.

Thanks!
Armond







More information about the SDL mailing list