
-----------------------------------
Pacman
Mon Nov 27, 2006 7:23 pm

For Statement with Colision Detection?
-----------------------------------
Ok, So another problem with my pacman program. ^-^ I create my dots with drawfilloval and then use my colision detection so pacman can eat it...for example


var distance_between_centres : real
var ydot1x, ydot1y, yellrad : int
        yellrad := 5
        ydot1x := 30
        ydot1y := 55
        var yellow1 := 1

distance_between_centres := sqrt ((ydot1x - x) ** 2 + (ydot1y - y) ** 2)
            if distance_between_centres 