answersLogoWhite

0

You will need to use the arrow keys.

drawfillarc (x, y, 20, 20, 230, 310, white)

y := y - 5

pacstate := true

end if

elsif chars (KEY_UP_ARROW) then

if pacstate = true then

drawfilloval (x, y, 20, 20, yellow)

y := y + 5

pacstate := true

else

drawfilloval (x, y, 20, 20, yellow)

drawfillarc (x, y, 20, 20, 70, 120, white)

y := y + 5

pacstate := false

end if

else

drawfilloval (x, y, 20, 20, yellow)

end if

View.UpdateArea (x - 45, y - 45, x + 45, y + 45)

drawfilloval (x, y, 45, 45, white)

delay (120)

end loop

User Avatar

Wiki User

9y ago

Still curious? Ask our experts.

Chat with our AI personalities

DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin
FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran
RossRoss
Every question is just a happy little opportunity.
Chat with Ross

Add your answer:

Earn +20 pts
Q: How do I make my Pacman move in Turing?
Write your answer...
Submit
Still have questions?
magnify glass
imp