Good afternoon everyone,
I this post in Atari 2600 programming too, however it is a batari basic question, so I posted here too.
I have a really dumb question. I am sorry. I have looked it up and experimented, however I just cant figure this simple thing out.
I have a small start of a game. Its just a sprite going up and down right now. This is Batari basic by the way.
I just want to set the console reset switch to reset. I have tried the ifthen and I just cannot get it to work. Here is the listing.
I am also having trouble making that bottom row solid.
I am sorry. I am new and am just having a little trouble. any help would be apprciated.
Thanks,
Bj
set kernel_options player1colors playercolors pfcolors
player0x = 75
player0y = 80
COLUBK=$15
main
playfield:
................................
................................
................................
................................
................................
................................
................................
................................
................................
................................
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
end
f=f+1
rem POSSIBLY INEFFICIENT CODE, SEPARATE COLOR INFO FOR EACH FRAME...
if f = 10 then player0:
%01100110
%00100100
%00100100
%11111111
%00111100
%00111100
%00111100
%00100100
end
if f = 10 then player0color:
$FC;
$FC;
$FC;
$F4;
$F4;
$F2;
$F0;
$F0;
end
if f = 20 then player0:
%00000110
%01100100
%00100100
%11111111
%00111100
%00111100
%00111100
%00100100
end
if f = 20 then player0color:
$FC;
$FC;
$FC;
$F4;
$F4;
$F2;
$F0;
$F0;
end
if f = 30 then player0:
%01100000
%00100110
%00100100
%11111111
%00111100
%00111100
%00111100
%00100100
end
if f = 30 then player0color:
$FC;
$FC;
$FC;
$F4;
$F4;
$F2;
$F0;
$F0;
end
drawscreen
if joy0up then player0y = player0y - 1
if joy0down then player0y = player0y + 1
goto main