Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Basic Powerbasic > keep background...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 161 of 282
Post > Topic >>

keep background colors

by "whitenite1" <staffordwhite2002@[EMAIL PROTECTED] > Oct 2, 2005 at 03:56 PM

Below is a screen I created so I pop it on the game screen when someone
press the 'I' key. I am unable to change the background color of the
screen, and put the box array on the screen in the colors I had when I
used the get command. How can I achieve this? Help would be appreciated.
Thank you..

Whitenite1
 

<----- code ----->
screen 12
color 4,5
cls
dim box(15300)

Boxit:
    for x = 2 to 20: locate x,2: print "                                  
     ": next x
    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 2
color 5,8
cls
put(150,65),box

end

<----- end code ----->
 




 1 Posts in Topic:
keep background colors
"whitenite1" &l  2005-10-02 15:56:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 6 17:14:57 CDT 2008.