Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Background Help
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
EvoX




PostPosted: Sun Mar 06, 2005 12:29 pm   Post subject: Background Help

Hello, I was just wondering if anyone can help me with the background. If you run this program the words "Do You Have what i takes" appear with a black background... as you see after this there is a night sky background.... is there anyway i can place that background when the words "Do you have what it takes?" are on it? Heres my code? Please attem[pt to help me fix it

code:

% Intro
setscreen ("graphic,title: The Apprentice By: Andrew Saggiorato,nobuttonbar")
colourback (black)
cls

% Play Music
process DoMusic
loop
Music.PlayFile ("Apprentice.wav")
end loop
end DoMusic

fork DoMusic

% Font Effects
var word : string := " Do You Have What It Takes?"
var cola : int := 30
colorback (black)
for row : 1 .. 25
for col : 1 .. 80
put " " ..
end for
end for
color (white)
for a : 1 .. length (word)
locate (22, cola)
cola += 1
put word (a)
delay (100)
end for

% Desired Star Background, I want this background with the text above..
for decreasing i : maxy .. 0
RGB.SetColour (1, 0, 0, i * (1 / maxy))
Draw.Line (0, maxy - i, maxx, maxy - i, 1)
end for

for a : 1 .. 500
var x := Rand.Int (0, maxx)
var y := Rand.Int (150, maxy)
var c := Rand.Int (16, 31)
Draw.Dot (x, y, c)
end for

drawfillbox (0, 0, maxx, Rand.Int (25, 30), 7)
var hold : int
for i : 1 .. 200
hold := Rand.Int (0, maxx)
drawfillbox (hold, 0,hold+Rand.Int (10,20), Rand.Int (0, 100), 7)
end for
Sponsor
Sponsor
Sponsor
sponsor
person




PostPosted: Sun Mar 06, 2005 1:47 pm   Post subject: (No subject)

cant u just put the text there after the background is drawn???

the user wont notice
Flikerator




PostPosted: Sun Mar 06, 2005 3:17 pm   Post subject: (No subject)

You could also just make a picture in say, paint of the text. Insert the pic and there you go.
mike200015




PostPosted: Sun Mar 06, 2005 4:10 pm   Post subject: (No subject)

sorry i dun get wat u want.. so u jus want to make the words appear after the night sky background is drawn??
person




PostPosted: Sun Mar 06, 2005 6:09 pm   Post subject: (No subject)

Oo sorry but my last post didnt make sense..anyways use Font.Draw
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: