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

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




PostPosted: Thu Feb 13, 2003 6:24 pm   Post subject: Help Im In Trouble

I have a project to do:

Make a house with the following Features:
a Roof Triangular and then Te right side of a 3d roof.
need to make Windows turn yellow and black in Regular intervals.
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Fri Feb 14, 2003 5:33 am   Post subject: (No subject)

well doesnt sound as a big project, just some drawing assigment Wink

You can use drawfillpolygon to draw triangular roof (or drawline with drawfill)

then you set up a loop with drawfillbox to draw the flashing window.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
gosho




PostPosted: Fri Feb 14, 2003 12:18 pm   Post subject: (No subject)

Thanx

But Can you help me how it would work?I did it but it doesent work:(
Tony




PostPosted: Fri Feb 14, 2003 3:13 pm   Post subject: (No subject)

code:

drawfillbox(100,100,200,200,black) %main box
drawline(100,200,150,250,black) %left roof
drawline(150,250,200,200,black) %right roof
drawfill(150,225,black,black) %roof colored

loop
drawfillbox(150,100,160,125,yellow) %open door
delay(500) %wait
drawfillbox(150,100,160,125,black) %close door
delay(500) %wait
end loop
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
gosho




PostPosted: Sat Feb 15, 2003 3:51 am   Post subject: (No subject)

Sorry To ask again but How can I make Many Stars in the Back Ground Flash from Black to Yellow?I know how to make one Thing flash(thanx to tony) But cant make more then 1 thing Flash in the same loop:(


And by the way What would I use to make a Moon?
gosho




PostPosted: Sat Feb 15, 2003 5:48 am   Post subject: (No subject)

Look at my Project sofar:)

I know its not Finished but Its Half way:)


If you see anything wrong please tell me.



House Project.t
 Description:

Download
 Filename:  House Project.t
 Filesize:  661 Bytes
 Downloaded:  489 Time(s)

Tony




PostPosted: Sat Feb 15, 2003 7:58 am   Post subject: (No subject)

to make multiple things flash in the same loop, you just place more drawings inside the loop...

such as another window to flash.

the thing is, you got to be careful of timing with delays. You would probably have to turn on second window before turning off first.

You'll figure it out, just try placing more things inside the loop (you can even place another loop inside your loop Very Happy)

As for the moon... its just two circles, a yellow one, and a blackone (it has to be bigger and moved to the side) to cover part of yellow one.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
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  [ 7 Posts ]
Jump to:   


Style:  
Search: