I saw some projects by @freestewart this afternoon that were creating a 'Minecraft' type world and I had a sudden insight as to an easy way to implement a block world that would correctly hide a player behind any blocks. To see this technique used in an actual game, see http://scratch.mit.edu/projects/32836744/ I suspect this could be useful in more types of games than just ones like Minecraft. Perhaps a tank game, or even a simple board game such as chess or scrabble. Or Sokoban (which I think I'll do this weekend) This was very easy to write - it took about 20 minutes. It shouldn't be hard to build it into your own code. I found some suitable Minecraft blocks at http://minecraft.gamepedia.com/Category:Block_renders
SEE http://scratch.mit.edu/projects/32261928/ for a reimplementation using stamping! Allows for infinite terrain instead of 300 cells max! TO DO: Need a player icon. Don't enter a square if there is a solid block in it, but OK if a 'floor' block (which includes side/back walls). Could use a 2D array project like http://scratch.mit.edu/projects/26343756/ or http://scratch.mit.edu/projects/10122815/ to store costumes in a 2D array. I should move some common code into procedures and create a high level interface that works in terms of integer x/y/z grid coords rather than pixel coords.