
-----------------------------------
shoobyman
Thu Dec 15, 2005 9:42 pm

bouncing ball
-----------------------------------
This code is driving me crazy cuz i can only give it the borders on the x axis, not y (even though my program looks like i tried to make a y border).  can some1 plz tell me how to change it so the y border will actually work without changing everything?  this is the code


var x : int := 2
var y : int := 2

loop
    if x = 630 or y >= 390
            delay (30)
            cls
            drawfilloval (x, y, 10, 10, 7)
            x := x + 10
            y := y + 2
        end loop
    end if
    if x >= 630 then
        loop
            exit when x 