Computer Science Canada

Turing - Building a house

Author:  MakaveliBRU [ Fri Nov 21, 2003 10:05 am ]
Post subject:  Turing - Building a house

Help us build a house becaues we are retarded
........please guide us along building this house because we don not understand this turing stuff.
.......were in a grade 11 computer engineering calss
and our teacher dont know jack!

Author:  Thuged_Out_G [ Fri Nov 21, 2003 12:30 pm ]
Post subject: 

open up the turing reference file, and do a search for "Draw"....everything you need is there, it shouldnt be very hard

Author:  poly [ Fri Nov 21, 2003 2:23 pm ]
Post subject: 

Quote:
please guide us along building this house because we don not understand this turing stuff.

Well than maybe you shouldn't be in a Turing course!
Quote:
and our teacher dont know jack!
why do people blame the teachers for there stupidity....

Author:  santabruzer [ Fri Nov 21, 2003 4:59 pm ]
Post subject: 

It's the way the world works.... Rolling Eyes

Author:  Tony [ Fri Nov 21, 2003 7:59 pm ]
Post subject: 

well some teachers really dont know much about programming.

But yeah... you need to Draw. module. I think someone wrote a tutorail on drawing stuff in turing Thinking

Author:  Tendulkar [ Tue Nov 25, 2003 1:44 pm ]
Post subject:  Re: Turing - Building a house

MakaveliBRU wrote:
Help us build a house becaues we are retarded
........please guide us along building this house because we don not understand this turing stuff.
.......were in a grade 11 computer engineering calss
and our teacher dont know jack!





% Here is Your Program
for i : 70 .. maxx - 70
drawline (i, 0, i, maxy div 2 + 50, black)
delay (5)
end for

for i : maxx div 2 - 30 .. maxx div 2 + 30
drawline (i, 0, i, 100, white)
delay (5)
end for

for i : 50 .. maxx div 2 + 10
drawline (i, maxy div 2 + 50, i + 10, maxy div 2 + 130, red)
drawline (maxx - i, maxy div 2 + 50, maxx - i - 10, maxy div 2 + 130, red)
delay (5)
end for

var font : int := Font.New ("Arial:30")
Font.Draw ("Home Sweet Home", maxx div 2 - (Font.Width ("Home Sweet Home", font) div 2), (maxy div 2 + 50 + maxy div 2 + 130) div 2, font, brightgreen)



Author:  air_force91 [ Tue Nov 25, 2003 1:55 pm ]
Post subject: 

yo...how would i display text in the center of the screen? Confused

Author:  air_force91 [ Tue Nov 25, 2003 1:57 pm ]
Post subject: 

yo...how would i display text in the center of the screen? Confused

Author:  Tony [ Tue Nov 25, 2003 2:37 pm ]
Post subject: 

code:

Font.Draw("text",round(maxx/2 - Font.Width("text",fontID)),round(maxy/2),fontID,black)


i hope that works

Author:  Andy [ Tue Nov 25, 2003 4:33 pm ]
Post subject: 

locatexy((maxx div 2)-(2*length(word)),maxy div 2)
where word is the message you want to put


: