7.1.1 Ghost Codehs <99% Direct>

var ghost; var dx = 2; var dy = 1; function start() drawGhost(200, 200); setTimer(moveGhost, 20);

function drawGhost(x, y) ghost = new Group(); 7.1.1 ghost codehs

if (newX > 360 If you can share or which part you're stuck on, I can give you a precise solution. var ghost; var dx = 2; var dy

var eye1 = new Circle(8); eye1.setColor("black"); eye1.setPosition(-20, -10); ghost.add(eye1); var dx = 2

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

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