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

Username:   Password: 
 RegisterRegister   
 Drawing a box in a procedure with boundries
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Fiofragen




PostPosted: Fri Dec 16, 2011 11:22 am   Post subject: Drawing a box in a procedure with boundries

What is it you are trying to achieve?
Making a procedure that will draw a box and set up boundaries for a pacman course.

What is the problem you are having?
The boundaries are not working on the drawn box.

Describe what you have tried to solve this problem
I have tried many different variables, and numbers, but the boundaries Dont seem to set properly

Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)

Turing:


procedure w (wx,wy,wxx,wyy:int)
drawfillbox (wx,wy,wxx,wyy,103)
if x>=wx-s and x <wxx-s and y>=wy-s and y<=wyy-s then
x:=wx-(s-7)
end if
end w
w (70, 75, maxx - 70, 65)
loop


Where 's' is the size of my pacman

Please specify what version of Turing you are using
4.1.0.0
Sponsor
Sponsor
Sponsor
sponsor
Aange10




PostPosted: Fri Dec 16, 2011 3:32 pm   Post subject: RE:Drawing a box in a procedure with boundries

Use the search function programmed into the website. You're answer will be on the front page.
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  [ 2 Posts ]
Jump to:   


Style:  
Search: