Path: chuka.playstation.co.uk!news From: "Steven Lewis" Newsgroups: scee.yaroze.freetalk.english Subject: Re: How do I initialize a sprite? Date: Mon, 13 Dec 1999 19:22:29 -0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 304 Message-ID: <833gsg$rb01@chuka.playstation.co.uk> References: <832etm$mos1@chuka.playstation.co.uk> NNTP-Posting-Host: pBDs13a03.client.global.net.uk X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Hi Daniel, Have a look at the attached 'main.c' file. I wrote it ages ago to display a single 4, 8, or 16 bit sprite onto the PlayStation's screen. If my memory serves me correctly I placed heaps of comments into the code to try to explain what was going on. If you need more information just let me know and I'll try to help. Steven. P.S. By the way, I actually came up to the University of Abertay Dundee about a week ago to talk to John Sutherland about a masters degree in Computer Games Technology. He showed me around all the labs you have up there and it looked fantastic. The only bad point was that Scotland is so bloody cold. I think a year up there would end my life! http://www.netyaroze-europe.com/~slewis daniel brown wrote in message news:832etm$mos1@chuka.playstation.co.uk... > What do I need to do to a 16 bit sprite after I have loaded it into a > buffer in main memory? I think I need to use GsGetTimInfo to fill out the > t-page data, what do I need to do after that, so I can use GsSortSprite? > I'm trying to write my own sprite handling code and have got a bit stuck :-) > I f one of you would be kind enough to tell me what I have to do, then that > should be enough.... > > Cheers, > > Daniel Brown > Universaty of Abertay Dundee > > begin 666 main.c M+RHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ M*BHJ*@T*("H)"0D)"0D)"0D)"0DJ#0H@*@D@(" )(" @(%-)3D=,12!34%)) M5$4@1$E34$Q!62!#3T1%(" )"2H-"B J"0D@(#T]/3T]/3T]/3T]/3T]/3T] M/3T]/3T]/3T]/3T]/0D)*@T*("H)"0D)"0D)"0D)"0DJ#0H@*@D)(" @"2!7 M7,@-"P@."P@;W(@,38M8FET('-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