Restored from previous forum. Originally posted by turtle1776.
Thank you to everyone who has helped me on my 8 bit questions so far. I decided to create a new thread explicitly devoted to 8 bit sprite questions, since that is what I am testing out in Pure Basic.
FYI, Pure Basic is the only Basic programming package that can do 8 bit games, as far as I know. Games like Starcraft, Diablo, and Age of Empires all used 8 bit graphics, which definitely consume far less video memory than larger graphic depths. They may also load from disk faster, and blit to the screen faster, though I have not tested these out to be sure. I would love for Pure Basic to be *the* Basic for 8 bit games!
So, here are my questions:
(1) How do you ClearScreen(Red, Green, Blue) to something other than black (0,0,0) or white (255,255,255) in 8 bit mode?
(2) How do you set TransparentSpriteColor(#Sprite, Red, Green, Blue) to something other than black in 8 bit mode?
Thanks!
8 Bit Sprite Questions
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by turtle1776.
Thank you, Fred. That seems to work for ClearScreen but not TransparentSpriteColor.
Actually, for ClearScreen(Red, Green, Blue) it is the Blue color index that is used. So if you used the command ClearScreen(0, 0, 10) it would clear the screen with the rgb color at that palette index. It's rgb value can be found as:
Red(GetPaletteColor(x))
Green(GetPaletteColor(x))
Blue(GetPaletteColor(x))
You can also look up all of the values in the 8 bit bmp's palette by using a program called PalMerge.
http://www.vantageviewsoftware.com/
Any suggestions on TransparentSpriteColor? It would be nice to mask a sprite with a color other than black.
Thank you, Fred. That seems to work for ClearScreen but not TransparentSpriteColor.
Actually, for ClearScreen(Red, Green, Blue) it is the Blue color index that is used. So if you used the command ClearScreen(0, 0, 10) it would clear the screen with the rgb color at that palette index. It's rgb value can be found as:
Red(GetPaletteColor(x))
Green(GetPaletteColor(x))
Blue(GetPaletteColor(x))
You can also look up all of the values in the 8 bit bmp's palette by using a program called PalMerge.
http://www.vantageviewsoftware.com/
Any suggestions on TransparentSpriteColor? It would be nice to mask a sprite with a color other than black.
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm