Jump to content

Photo

Please walk me through pfres using Superchip ram


5 replies to this topic

#1 freshbrood OFFLINE  

freshbrood

    Star Raider

  • 80 posts

Posted Fri Jul 20, 2018 5:56 AM

I can't find any instructions or tutorials on how to implement this and draw a playfield.

Also, how do we draw using the pfrowheights kernel, and what is the difference?

#2 Lewis2907 ONLINE  

Lewis2907

    Moonsweeper

  • 276 posts
  • Location:Senatobia, MS

Posted Fri Jul 20, 2018 8:13 AM

http://www.randomter...tml#pfrowheight

Is at RT site, thanks.

#3 freshbrood OFFLINE  

freshbrood

    Star Raider

  • Topic Starter
  • 80 posts

Posted Sat Jul 21, 2018 10:19 AM

This doesn't tell me anything at all. I've seen it, and it is not helpful to amateur programmers. How do I draw a playfield using this? Using const pfres with many diffetent numbers only gives me giant blocks or random, unordered blocks.

#4 Lewis2907 ONLINE  

Lewis2907

    Moonsweeper

  • 276 posts
  • Location:Senatobia, MS

Posted Sat Jul 21, 2018 12:51 PM

Oh okay got it. When I get off work today. I will post one my programs. It's should work for you.

#5 Lewis2907 ONLINE  

Lewis2907

    Moonsweeper

  • 276 posts
  • Location:Senatobia, MS

Posted Sat Jul 21, 2018 4:05 PM

I was able to play with the Standard Kernel. I'm not an expert (or maybe way off target), but I think this is what you are looking for. I used "The Cabin" by Odourman as an example. Attached is the code in text and .bas for an Emulator. Maybe someone else will chime in as well. If you change 10 to other numbers the screen will shrink. I also attached the MulstiSprite Version as well of "The Quest". If change the pf height it will adjust the screen, but I'm not sure on "Variables Freed". Hope this helps, thanks. 

 

   ;***************************************************************
   ;
   ; Also, note that reducing the number of rows may or may not shrink the
   ; size of your screen since bB tries to fill as much of the screen as possible
   ; by varying the height of the pixel rows. The default row heights and free variables
   ; corresponding to the overall playfield height (pfres) is:
   ;
   ; pfres  Row Height  Variables Freed
   ; 12  8  none
   ; 11  8  var0-var3
   ; 10  9  var0-var7
   ; 9 10  var0-var11
   ; 8 12  var0-var15
   ; 7 13  var0-var19
   ; 6 16  var0-var23
   ; 5 19  var0-var27
   ; 4 24  var0-var31
   ; 3 32  var0-var35
   ;***************************************************************
   ;
   ;  Change the below number to corespond with the above to free the variables
   const pfres=10

Attached Files



#6 Random Terrain OFFLINE  

Random Terrain

    Visual batari Basic User

  • 28,779 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Sat Jul 28, 2018 7:54 PM

The bB page has a Pac-Man-like maze example program that uses Superchip RAM:

 

randomterrain.com/atari-2600-memories-batari-basic-commands.html#maze_32x23

 

It uses "set romsize 16kSC" and "const pfres=23" and this is used before the main loop:

 

   playfield:
   XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
   X..............XX..............X
   X..............XX..............X
   X..XXX..XXXXX..XX..XXXXX..XXX..X
   X..............................X
   X..............................X
   X..XXX..X..XXXXXXXXXX..X..XXX..X
   X.......X......XX......X.......X
   X.......X......XX......X.......X
   XXXXXX..XXXXX..XX..XXXXX..XXXXXX
   X..............................X
   X..............................X
   X..XXX..XXXXXXX..XXXXXXX..XXX..X
   X....X....................X....X
   X....X....................X....X
   XXX..X..X..XXXXXXXXXX..X..X..XXX
   X.......X......XX......X.......X
   X.......X......XX......X.......X
   X..XXXXXXXXXX..XX..XXXXXXXXXX..X
   X..............................X
   X..............................X
   XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
   XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
end





0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users