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

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




PostPosted: Tue Jan 08, 2013 10:40 pm   Post subject: Neeeeddd Helllppppp

how can i make a intersection in turing, cause i have an isu due tomorrow to make a working intersection and i already have the lights but just cant figure out the road and background grass,
i have no clue can someone please help or give me the codes
Sponsor
Sponsor
Sponsor
sponsor
Panphobia




PostPosted: Tue Jan 08, 2013 10:50 pm   Post subject: RE:Neeeeddd Helllppppp

Draw.FillBox (x1, y1, x2, y2, Color : int)
thecanadiancomrade




PostPosted: Tue Jan 08, 2013 11:04 pm   Post subject: Re: Neeeeddd Helllppppp

how do i make it face up
Panphobia




PostPosted: Tue Jan 08, 2013 11:13 pm   Post subject: RE:Neeeeddd Helllppppp

face up? explain please
thecanadiancomrade




PostPosted: Tue Jan 08, 2013 11:14 pm   Post subject: Re: Neeeeddd Helllppppp

sorry, vertical i ment
Panphobia




PostPosted: Tue Jan 08, 2013 11:35 pm   Post subject: RE:Neeeeddd Helllppppp

x1,x2,y1,y2 they give you the shape of this box, so you just have tweak those values
ryan.s




PostPosted: Wed Jan 09, 2013 12:57 am   Post subject: RE:Neeeeddd Helllppppp

example:

drawfillbox(30,30,40,70,black)

There is no portrait or landscape, consider the pixels in your head and make it so the 2nd corner is further vertically then horizontally
Panphobia




PostPosted: Wed Jan 09, 2013 8:17 pm   Post subject: Re: Neeeeddd Helllppppp

This is a similar project I had in grade 11 engineering, because I was by myself I only needed to make a car move down streets and make the left/right/braking signals show up on a model car through turing, but as for the landscape this is an example of my streets
code:
Draw.FillBox (0, 0, 800, 600, black)     %draws road
    Draw.FillBox (230, 190, 600, 410, darkgrey)     %draws curb
    Draw.FillBox (250, 210, 580, 390, green)     %draws curb
    Draw.FillBox (230, 550, 600, 600, darkgrey)     %draws curb
    Draw.FillBox (250, 570, 580, 600, green)     % draws curb
    Draw.FillBox (760, 190, 800, 410, darkgrey)     %draws curb
    Draw.FillBox (780, 210, 800, 390, green)     %draws curb
    Draw.FillBox (0, 190, 40, 410, darkgrey)     %draws curb
    Draw.FillBox (0, 210, 20, 390, green)     %draws curb
    Draw.FillBox (230, 0, 600, 40, darkgrey)     %draws curb
    Draw.FillBox (250, 0, 580, 20, green)     %draws curb
    Draw.FillBox (0, 0, 40, 40, darkgrey)     %draws curb
    Draw.FillBox (0, 0, 20, 20, green)     %draws curb
    Draw.FillBox (0, 560, 40, 600, darkgrey)     %draws curb
    Draw.FillBox (0, 580, 20, 600, green)     %draws curb
    Draw.FillBox (760, 560, 800, 600, darkgrey)     %draws curb
    Draw.FillBox (780, 580, 800, 600, green)     %draws curb
    Draw.FillBox (760, 0, 800, 40, darkgrey)     %draws curb
    Draw.FillBox (780, 0, 800, 20, green)     %draw curb
Sponsor
Sponsor
Sponsor
sponsor
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  [ 8 Posts ]
Jump to:   


Style:  
Search: