Computer Science Canada

Drawing a box in a procedure with boundries

Author:  Fiofragen [ 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

Author:  Aange10 [ 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.


: