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 end
It's nice that we can create playfields like the example above instead of only being able to use pfpixel, pfhline, and pfvline.
But it would be very helpful if we could tell playfield: where to start drawing. I'm not sure what is possible, so I'll give a couple of examples.
Example #1 (ypos only)
If xpos isn't possible and we can only to tell playfield: to start drawing at ypos, then we could do something like this with a number or variable:
playfield: 15 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 end
batari Basic would leave rows 0 through 14 alone and place the above data on the screen starting at row 15.
Example #2 (xpos and ypos)
If it would be possible to tell playfield: to start drawing at xpos and ypos, then we could do something like this with numbers or variables:
playfield: 19 15 XX..X..X..XXX ....X.......X ....X.......X XXXXXXXXXX..X ............X ............X XXXXXXXXXXXXX end
batari Basic would leave the rest of the screen alone and start drawing the data above starting 19 pixels over and 15 rows down.
Here's another xpos/ypos example:
playfield: 0 15 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 end
I hope example #2 with xpos and ypos will be possible, but if you can only do example #1 with ypos, that's better than nothing. Example #1 would still help me create random-ish playfields for maze games, but example #2 would give me more control and would be useful in all kinds of games.
I'm really going to need this ability in at least two of my future games. Yes, I know everyone reading this just fell on the floor laughing, but I will get at least one game finished.
Thanks.














