-
Content Count
33 -
Joined
-
Last visited
Posts posted by boski
-
-
I just started batari basic a few weeks ago, and I can't figure this one out. I'm trying to create a multicolor sprite, but it always comes out all black. I've tried rearranging the commands, but the result is always the same. Here's my most recent code:
player0:
%00011100
%00011000
%00111100
%00111110
%00111100
%00111000
%00011000
%00011000
end
player0x=45
player0y=60
Main
COLUBK=$EE
player0color:
$40
$D0
$D0
$5E
$5E
$5E
$2E
$2E
end
drawscreen
goto Main
Also, I can't figure out the "set kernel multisprite" command. I never get an error message, but only two large sprites and an enlarged portion of the playfield show up in the emulator.
Thank you anyone for any help!

Background Limits
in batari Basic
Posted
I'm trying to take advantage of the different options with backgrounds and playfields. The example below shows how to: create a multi-colored background, a multi-colored sprite, and stretch the playfield to the edges of the screen (That's the PF0=255 command. It must be placed within your loop, as do your color instructions). Hopefully this helps other beginners with those hurdles. Now for my current problem: I don't want to stretch the playfield to the edges of the screen, I want to limit the background colors to the edge of the playfield. Has anyone else had this issue? Thanks!
set kernel_options player1colors pfcolors no_blank_lines background
player0x=40
player0y=84
player1x=30
player1y=63
playfield:
..............XXXX..............
.............X....X.............
XXXXXXXXXXXXX......XXXXXXXXXXXXX
X..............................X
X..............................X
XX....XXXXXXXXXXXXXXXXXXXXXXXXXX
X..............................X
X..............................X
XXXXXXXXXXXXXXXXXXXXXXXXXX....XX
X..............................X
X..............................X
end
player0:
%00000010
%00000100
%00001000
%00010000
%00111000
%01111100
%11111110
%01101100
end
player1:
%01001000
%00110000
%00111000
%00111000
%00110101
%00110010
%00111000
%00110000
end
main
player1color:
$40
$D0
$D0
$D0
$0A
$2E
$2E
$2E
end
COLUP0=$42
pfcolors:
$00
$00
$00
$20
$22
$22
$24
$24
$28
$28
$28
$2A
$00
end
PF0=255
COLUPF=$08
drawscreen
goto main