Path: chuka.playstation.co.uk!news From: "pal" Newsgroups: scee.yaroze.beginners Subject: Re: My Sprite Viewer Doesn't Work Date: 5 Jun 1999 22:51:39 GMT Organization: PlayStation Net Yaroze (SCEE) Lines: 25 Message-ID: <01beafa5$af1360e0$a89524c3@pal-s-omnibook> References: <7iekt2$sfd26@chuka.playstation.co.uk> <01beade9$f30c3000$ad9524c3@pal-s-omnibook> <7j6hbd$m4q16@chuka.playstation.co.uk> NNTP-Posting-Host: Marseille-4-168.club-internet.fr X-Newsreader: Microsoft Internet News 4.70.1155 > > The form without parenthesis just evaluates "initGame", which is the > > pointer to the function - i.e. it does nothing. > > > Well wouldn't this mean that his sprite doesn't get initialised, so cannot > be used? Exactly. > Another thing, which I'm not sure about but rings a bell could be to do with > defining a lot of his variables (I'm looking at gpuPktArea and the OT > handling ones) inside the main. I dunno, but maybe these should be global > variables so the outside lib functions have access to them. Everything needed is passed as arguments, so there's nothing wrong in the variables being local, as long as they are not used after the end of the function they're declared in. It may be confusing, though, because of what I just wrote. (and this last sentence may be confusing, too, may not it ?) Btw, you can have as many different OTs (esp. in hierarchical structures) and displays (think split screen) as you want, which lets you imagine that those things are better handled with parameters. pal.