Anyone interested in writing a pacman-like game (where sprites move around on a grid) is welcome to reuse the code I just posted from my 'Vac-Man' game http://scratch.mit.edu/projects/gtoal/1282991 .
This is my second attempt to do a maze game; I deleted the first one because I made some bad design decisions; I think I got this one right - the motion is smooth and the collision detection is accurate; and I'm pretty pleased with the way that it turns corners. (That part took a few tries to get right)
It's a shame that Scratch doesn't allow for comments; I've kept it as simple as I could but there are a few tricky bits that may need explanation. Ask here if you're using the code and I'll explain anything you need to know.
There's only two pieces of code in the project that I'm not happy with, and I'm hoping you can help me with these: 1) there's a big array that's initialised in a loop and it takes way too long because each iteration causes a 1-frame delay, slowing down the startup of the game; and 2) I don't know how to print text to the screen so I'm displaying the score and a timer using the variable display facility.
Graham
Offline
A nice and funny twist on an old classic.

Offline