7.1.1 Ghost Codehs May 2026

function moveGhost() var newX = ghost.getX() + dx; var newY = ghost.getY() + dy;

var body = new Circle(40); body.setColor("white"); ghost.add(body); 7.1.1 ghost codehs

function drawGhost(x, y) ghost = new Group(); function moveGhost() var newX = ghost