09.03.2014, 18:40
Hello,
I have one other problem I need your help with. One I want my game in AGA mode using 64 colors. This is the code I have written so far:
LoadShape 0, "Work:robotstrip.iff",0
Blitz
AutoCookie On
InitCopList 0, 44, 256, $80, 125, $10000,0
DisplayPalette 0,0
DisplayBitMap 0,0
CreateDisplay 0
BitMapOutPut 0
GetaShape 0,0,0,32,32
BlitMode CookieMode
Blit 0,12,12
In the robotstrip.iff there are 14 different sprites put together in a row beside each and saved as robotstrip.iff. I want to blit from this strip into the screen. For example, robotstrip.iff have the following images in one file
ABCDEFGHIJK
Each letter represent a different image or sprite and each size of them are 32 X 32 and each use 64 colors sharing the same palette, stored in one file called robotstrip.iff. What I want is blit image A in coordinate 12, 12. This is where I am using GetaShape 0,0,0, 32, 32 is coming from. The X, Y is 0 and the size of the image is 32 by 32.
When I do blit 0,12,12 nothing shows.
Another problem I have with InitCopList 0, 44, 256, $80, 125, $10000,0. You see that number 125? If I change it's value it is either SUPER white background or purple coloring or blue. But I cannot get it to be black color for some reason. Also I want to initcopList in #AGAColor mode and I am not sure if this is working.
Can you help me on this please?
Oh one other thing....when I attempted to change the code to blit the entire strip in one shot they come out wrong colored, inverted etc, eventually as I played with the code the system crashed.
I have one other problem I need your help with. One I want my game in AGA mode using 64 colors. This is the code I have written so far:
LoadShape 0, "Work:robotstrip.iff",0
Blitz
AutoCookie On
InitCopList 0, 44, 256, $80, 125, $10000,0
DisplayPalette 0,0
DisplayBitMap 0,0
CreateDisplay 0
BitMapOutPut 0
GetaShape 0,0,0,32,32
BlitMode CookieMode
Blit 0,12,12
In the robotstrip.iff there are 14 different sprites put together in a row beside each and saved as robotstrip.iff. I want to blit from this strip into the screen. For example, robotstrip.iff have the following images in one file
ABCDEFGHIJK
Each letter represent a different image or sprite and each size of them are 32 X 32 and each use 64 colors sharing the same palette, stored in one file called robotstrip.iff. What I want is blit image A in coordinate 12, 12. This is where I am using GetaShape 0,0,0, 32, 32 is coming from. The X, Y is 0 and the size of the image is 32 by 32.
When I do blit 0,12,12 nothing shows.
Another problem I have with InitCopList 0, 44, 256, $80, 125, $10000,0. You see that number 125? If I change it's value it is either SUPER white background or purple coloring or blue. But I cannot get it to be black color for some reason. Also I want to initcopList in #AGAColor mode and I am not sure if this is working.
Can you help me on this please?
Oh one other thing....when I attempted to change the code to blit the entire strip in one shot they come out wrong colored, inverted etc, eventually as I played with the code the system crashed.