Sprite Graphics Colors

Welcome back to our Commodore Discussion forum. If you have a question, comment, problem, or just want to chat about Commodore, post it here for free.

Have some fun and talk to others interested in the Old and New Commodore world.

Moderators: wiskow, Trazan

Post Reply
wildtiel
Posts: 15
Joined: Thu Jul 24, 2008 8:47 pm

Sprite Graphics Colors

Post 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?
http://80stech.webs.com/

Collector and user of vintage electronics.
Check out my Website!
donni
Posts: 27
Joined: Sun May 27, 2007 9:31 pm
Location: Netherlands

Re: Sprite Graphics Colors

Post 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.
wildtiel
Posts: 15
Joined: Thu Jul 24, 2008 8:47 pm

Re: Sprite Graphics Colors

Post by wildtiel »

ah, awesome. thanks a lot :D .

oh, and i do have the reference guide, i just couldn't find what i was looking for, lol.
http://80stech.webs.com/

Collector and user of vintage electronics.
Check out my Website!
User avatar
administrator
Site Admin
Posts: 624
Joined: Wed Mar 16, 2005 10:23 pm
Location: Calgary Alberta Canada
Contact:

Re: Sprite Graphics Colors

Post 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
wildtiel
Posts: 15
Joined: Thu Jul 24, 2008 8:47 pm

Re: Sprite Graphics Colors

Post 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.
http://80stech.webs.com/

Collector and user of vintage electronics.
Check out my Website!
Post Reply