Jump to content



0

The colors, Duke! They're all WRONG!


7 replies to this topic

#1 Jess Ragan OFFLINE  

Jess Ragan

    Riding the Crazy Crane

  • 7,951 posts
  • Prepare to Joust... Buzzard Bait!
  • Location:MI

Posted Mon Aug 29, 2011 12:29 PM

Okay, so I've been futtering around with Batari BASIC after, what, a six year absence? (Man, hard to believe it's been around that long.) I wanted to take advantage of the new support for background color, but things aren't panning out. The colors don't look anything like ones shown in the TIA Color Chart. Could you tell me what I'm doing wrong? Here's the code...

 rem Setting Kernal options. We're trying to draw a colorful background, which Solar Plexus didn't have
 set kernel_options pfcolors pfheights background
 
 rem Some interesting things are happening here. One is that ugly and annoying "stair stepping."
 rem Second is that the playfield can be up to 118 pixels in height, max.  However, 88 pixels is recommended for optimal performance.
 rem Third is that a small portion of the screen is gobbled up by a black bar.  Nothing life-ending, but still slightly odd.

 pfheights:
 8
 8
 8
 8
 8
 8
 8
 8
 8
 8
 8
end

 rem We're experimenting with colors here, but what I'd like to do ultimately is create a sunrise or sunset with layers.
 rem You know those sand sculptures that used to be big in the 1970s?  I think they work on the same principle.
 rem (P.S. Shake them up and watch the guy who created them flip his wig!)

 pfcolors:
 $00
 $0C
 $1C
 $2C
 $3C
 $4C
 $5C
 $6C
 $7C
 $8C
 $9C
 $AC
end

rem Just some screwy business with character blocks.  I'm hoping to use these to shape the playfield.

 for i = 1 to 10
 j = i + 10
 pfpixel j i on
 next

 drawscreen

Lupe
 goto Lupe



#2 ScumSoft OFFLINE  

ScumSoft

    Moonsweeper

  • 331 posts
  • Location:Polysorbate 60

Posted Mon Aug 29, 2011 12:57 PM

Put drawscreen into your lupe loop so that it syncs to ntsc by default.

#3 Jess Ragan OFFLINE  

Jess Ragan

    Riding the Crazy Crane

  • 7,951 posts
  • Prepare to Joust... Buzzard Bait!
  • Location:MI

Posted Mon Aug 29, 2011 1:25 PM

Yep, that seemed to work. Thanks!

#4 ScumSoft OFFLINE  

ScumSoft

    Moonsweeper

  • 331 posts
  • Location:Polysorbate 60

Posted Mon Aug 29, 2011 3:54 PM

Also fix your stair step by using the no_blank_lines kernel option.

#5 Jess Ragan OFFLINE  

Jess Ragan

    Riding the Crazy Crane

  • 7,951 posts
  • Prepare to Joust... Buzzard Bait!
  • Location:MI

Posted Tue Aug 30, 2011 11:55 AM

I don't think you can use that with the other kernal options I've got in this program.

#6 Random Terrain OFFLINE  

Random Terrain

    Visual batari Basic User

  • 20,923 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Tue Aug 30, 2011 12:03 PM

View PostJess Ragan, on Tue Aug 30, 2011 11:55 AM, said:

I don't think you can use that with the other kernal options I've got in this program.
Right:

http://www.randomter...l#kernelopchart

But if you didn't need pfheights, then you could.

#7 Jess Ragan OFFLINE  

Jess Ragan

    Riding the Crazy Crane

  • 7,951 posts
  • Prepare to Joust... Buzzard Bait!
  • Location:MI

Posted Tue Aug 30, 2011 12:17 PM

View PostRandom Terrain, on Tue Aug 30, 2011 12:03 PM, said:

View PostJess Ragan, on Tue Aug 30, 2011 11:55 AM, said:

I don't think you can use that with the other kernal options I've got in this program.
Right:

http://www.randomter...l#kernelopchart

But if you didn't need pfheights, then you could.

In this program, you don't. In the one I've got planned, you do.

So hey, since I've got your attention, what are some of the things you can do with a Supercart or Harmony cartridge that would be impossible with a standard cart? Do they just offer extra memory or does that memory allow for new features? I would love to be able to mix and match kernals more freely.

#8 Random Terrain OFFLINE  

Random Terrain

    Visual batari Basic User

  • 20,923 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Tue Aug 30, 2011 1:08 PM

View PostJess Ragan, on Tue Aug 30, 2011 12:17 PM, said:

So hey, since I've got your attention, what are some of the things you can do with a Supercart or Harmony cartridge that would be impossible with a standard cart? Do they just offer extra memory or does that memory allow for new features? I would love to be able to mix and match kernels more freely.
10 multicolored single-height sprites for your games and more:

http://www.atariage....03#entry2361003




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users