Path: chuka.playstation.co.uk!news From: "David \"DM\" Treay" Newsgroups: scee.yaroze.programming.2d_graphics Subject: Having trouble with 2D sprite viewer Date: Sun, 28 Dec 1997 20:43:17 +1000 Organization: SF Productions Lines: 142 Message-ID: <34A62D45.501@hunterlink.net.au> Reply-To: dmtreay@hunterlink.net.au NNTP-Posting-Host: new5as10.hunterlink.net.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01Gold (Win95; I) I've been trying to make a program to display 2D images as sprites (taking judicious inspiration from Ira Rainey's SPRITE.C tutorial). The problem is, when I GCC-compile it and then download it with PSComUtil, I get a few blue bricks roughly the size of the image instead of the image loaded in from the TIM file. I have only had the Yaroze for four days, and consider myself quite lucky to have already written a basic B&W image display - now I need colour, which is what this program is supposed to be. BTW, the reason I use GCC to compile and PSComUtil for downloads is a) I can't get SIOCONS to work, and b) I haven't had time to learn how to use CodeWarrior. So, can somebody please solve the riddle of the blue bricks? Here's the code. #include #define SCREEN_WIDTH 320 #define SCREEN_HEIGHT 240 #define NO_SPRITES (1 + 1) #define OT_LENGTH 1 #define spriteAdd 0x80100000 GsOT WorldOT[2]; GsOT_TAG OTTags[2][1<