[SDL] Where SDL goes in your game
Peter Mulholland
darkmatter at freeuk.com
Wed Nov 8 11:14:43 PST 2006
Hello Armond,
Wednesday, November 8, 2006, 5:43:55 PM, you wrote:
> Hi everyone,
> This is my first post in this forum and hoping to find some help. I started
> SDL a few months ago and all is well except I have a problem with the entire
> program's structure.
>
> When we create an SDL-based app, where do you put all the SDL data as far as
> the entire program's structure is concerned. An example... suppose we have the
> following classes:
>
> - GameObjects ( super-class )
>
> - Ball ( derived-class )
> - Paddle ( derived-class )
<snip>
My two cents. Please do not get Java-itis and write your games so that
every little thing is an object. It's inefficient, it's difficult to
follow, and if you have to port such code (as I do) it's a total pain
in the ass.
--
Best regards,
Peter mailto:darkmatter at freeuk.com
More information about the SDL
mailing list