I want to be able to grab the instructions to a game I am writing, and put it temporarily on the screen when the user presses the 'I' key. I am able to grab the screen,
but when I PUT it on the screen, the colors I started with are not what is used. How can I create a color box, and use it as created? Below is the code for am using. Am I doing something wrong?
Thanks for any suggestions...
screen 12
cls
dim box(15300)
Boxit:
for x = 2 to 20: locate x,2: color 0,9
rint " ": next x
color 5,7:LOCATE 1, 1: PRINT CHR$(201) + STRING$(40, 205) + CHR$(187)
FOR x = 2 TO 20: LOCATE x, 1: PRINT CHR$(186): LOCATE x, 42: PRINT CHR$(186);chr$(176): NEXT x
LOCATE 21, 1: PRINT CHR$(200) + STRING$(40, 205) + CHR$(188);chr$(176)
print tab(2);string$(42,176)
Instructions:
locate 2,15: print "Instructions"
locate 3,14: print "--------------"
locate 4,3: print "You, as the wolf, must land on a goat"
locate 5,3: print "by exact count. You move in any direc-"
locate 6,3: print "tion, up to your total moves allotted."
locate 7,3: print "The goats move in a straight line in"
locate 8,3: print "any one direction. They move in the"
locate 9,3: print "amount shown as their number. That is,"
locate 10,3: print "a G4 will move 4 straight spaces and"
locate 11,3: print "will try to land on your wolf. If one"
locate 12,3: print "does, the game is over. YOU LOSE !!!"
locate 14,11: print "The game is over when :"
locate 15,12: print "A) You eat 3 goats."
locate 16,12: print "B) A goat eats YOU!"
locate 18,12: print "Press Space To End"
locate 20,5: print "Press 'i' to re-read instructions"
get(1,1)-(343,355),box
delay 4
color 7,2
cls
put(150,65),box,XOR
end
------------------
but when I PUT it on the screen, the colors I started with are not what is used. How can I create a color box, and use it as created? Below is the code for am using. Am I doing something wrong?
Thanks for any suggestions...
screen 12
cls
dim box(15300)
Boxit:
for x = 2 to 20: locate x,2: color 0,9

color 5,7:LOCATE 1, 1: PRINT CHR$(201) + STRING$(40, 205) + CHR$(187)
FOR x = 2 TO 20: LOCATE x, 1: PRINT CHR$(186): LOCATE x, 42: PRINT CHR$(186);chr$(176): NEXT x
LOCATE 21, 1: PRINT CHR$(200) + STRING$(40, 205) + CHR$(188);chr$(176)
print tab(2);string$(42,176)
Instructions:
locate 2,15: print "Instructions"
locate 3,14: print "--------------"
locate 4,3: print "You, as the wolf, must land on a goat"
locate 5,3: print "by exact count. You move in any direc-"
locate 6,3: print "tion, up to your total moves allotted."
locate 7,3: print "The goats move in a straight line in"
locate 8,3: print "any one direction. They move in the"
locate 9,3: print "amount shown as their number. That is,"
locate 10,3: print "a G4 will move 4 straight spaces and"
locate 11,3: print "will try to land on your wolf. If one"
locate 12,3: print "does, the game is over. YOU LOSE !!!"
locate 14,11: print "The game is over when :"
locate 15,12: print "A) You eat 3 goats."
locate 16,12: print "B) A goat eats YOU!"
locate 18,12: print "Press Space To End"
locate 20,5: print "Press 'i' to re-read instructions"
get(1,1)-(343,355),box
delay 4
color 7,2
cls
put(150,65),box,XOR
end
------------------
Comment