Jump to content
abaudrand

little problem with the background colors option

Recommended Posts

I'm trying to change the value of color between level with the background colors option. I don't understand why it won't compile.

 rem Generated 12/09/2010 14:06:40 by Visual bB Version 1.0.0.554
rem **********************************
rem *<filename> 	*
rem *<description> 	*
rem *<author> 	*
rem *<contact info> 	*
rem *<license> 	*
rem **********************************
	set tv pal
	set kernel_options pfcolors pfheights background

Start 
	COLUBK=$0E
	pfheights:
8
8
8
8
8
8
8
8
8
8
8
end
pfcolors:
$06
$0D
$0C
$0E
$0E
$0C
$0E
$0C
$0A
$0A
$40
end
	playfield:
................................
................................
................................
................................
................................
.......X.X......................
.......XXXX........XX...........
XX.....XXXX.......XXX.......XX.X
XX.....X.XXX......XXXX...XXXXXXX
XX.XX..X.XXX......XXXX...XXXXXXX
................................
end

drawscreen
if joy0fire then goto Start2


goto Start
Start2
	COLUBK=$0E
	pfheights:
8
8
8
8
8
8
8
8
8
8
8
end
pfcolors:
$46
$4D
$4C
$4E
$0E
$0C
$0E
$0C
$0A
$0A
$40
end
	playfield:
................................ 
................................
................................
................................
................................
.......X.X......................
.......XXXX........XX...........
XX.....XXXX.......XXX.......XX.X
XX.....X.XXX......XXXX...XXXXXXX
XX.XX..X.XXX......XXXX...XXXXXXX
................................
end

drawscreen
goto Start2

 

 

I've read that the pfheights need to be set once (maybe with a const, but I've forgot where I've read it) but if I skip the pfheights for the second playfield, it will not compile either...

Did I missed something?

Share this post


Link to post
Share on other sites
I've read that the pfheights need to be set once (maybe with a const, but I've forgot where I've read it) but if I skip the pfheights for the second playfield, it will not compile either...

Did I missed something?

You probably read it here:

 

http://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html#kernop_pfheights

Warning: When using pfcolors and pfheights together in the same game, you can only define pfheights: and pfcolors: one time, and you need to define pfheights first.

Share this post


Link to post
Share on other sites

thanks Random Terrain. So does it also means that you can't change the colors of the background and they will be set forever for all the differents playfields of the game?

Share this post


Link to post
Share on other sites

thanks Random Terrain. So does it also means that you can't change the colors of the background and they will be set forever for all the differents playfields of the game?

I believe that's right, if you use both options together. But I think I may have posted an example once, long ago, showing how you could move the tables into RAM so the colors and heights can be modified. I'll have to look around for it.

 

Michael

 

Edit: Found it -- http://www.atariage.com/forums/topic/112423-pfcolors-and-pfheights-together-in-ram/page__view__findpost__p__1358745

Edited by SeaGtGruff

Share this post


Link to post
Share on other sites

thanks Michael... It's a difficult solution for me to do at the moment. :/ I don't have the knowledge to handle this nor code space for setting the SC option...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...