Squeak: Sokoban Game Enhancements
Published an update to the Sokoban game for
Squeak. Quite a bit ago I wrote some enhancements to the Sokoban game that
appeared on Squeak Map. I haven't touched it
since.
Alan
Grimes, a fellow Squeaker, recently wrote to me about some performance issues he
encountered and fixed with the Sokoban Morph. I didn't write the original code
and never paid any attention to how it managed the parts when I added my initial
enhancements. Sure enough, the original code actually destroyed and
reconstructed every morphic piece each time a move was
made.This update does a few things
better. I broke out options management code and sounds management code by
factoring that stuff out into other classes. And of course, the move pieces
code was modified to no longer reconstruct the
board.The Monticello
package can be found on my Squeak Enhancements
page.
Posted: Friday - September 16, 2005 at 05:28 PM
|