Page 1 of 1
Sprite Graphics Colors
Posted: Sun Aug 10, 2008 12:46 pm
by wildtiel
To change the color of sprite graphics, do you simply need to add (PRINT CHR$"#") to the program? I've tried unsuccessfully several times, but only managed to change the color of the text. I've checked the color quality of the computer and there doesn't seem to be anything wrong, even checking the chips in the machine to see if any are hot or not working correctly. Is this simply an issue with my programming, or is there a fault in the computer itself?
Re: Sprite Graphics Colors
Posted: Sun Aug 10, 2008 1:17 pm
by donni
Changing the color of the sprites is quite easy.
Address 53287 controls the color of sprite 0, address 53288 for sprite 1 .......... address 53294 for sprite 7.
For example, if you want to make sprite 2 black the command would be: poke53289,0
If you like programming you should consider getting a good book where all the registers are explained, like the commodore 64 programmer's reference guide.
Re: Sprite Graphics Colors
Posted: Sun Aug 10, 2008 6:49 pm
by wildtiel
ah, awesome. thanks a lot

.
oh, and i do have the reference guide, i just couldn't find what i was looking for, lol.
Re: Sprite Graphics Colors
Posted: Sun Aug 10, 2008 11:52 pm
by administrator
On the off chance you were not aware... we have both the Programmer and User manuals available on-line:
http://www.commodore.ca/manuals/c64_pro ... erence.htm
http://www.commodore.ca/manuals/c64_use ... _guide.htm
__________________
Ian Matthews
Re: Sprite Graphics Colors
Posted: Mon Aug 11, 2008 9:16 pm
by wildtiel
Oh cool! Thanks a lot. Mine is an origional copy and is missing some pages. Must explain why i couldn't find it.