Game progress today

May 27, 2009 17:58

A few days ago, in what I still regard as a remarkably lucid moment, I wrote down a list of stepping-stones to work toward in getting the computer game I've been trying to put together into a usable state. It went about like this:

1. Get a part of the board to display.
2. Get a board square (technically, a hexagon) to change colors when clicked on (to show that it is "selected" or "not selected" -- the idea here was really just to get the colors to change).
3. Get the mechanism for making a move to work.
4. Get the mechanism for making a move to work only if the move is legal.

If I achieve all of these, then in principle I ought to be just about home-free, as the rest of it should be just a matter of applying elbow grease.

Well, I'd already managed #1, although it had been a while and I wasn't sure which script file the successful code was in. But I "re-discovered" that. #2 still eludes me, but I think I can guess the nature of the snag. #3 and #4 are still in the future, although I've written lists against the legality of the move can be checked.

I also managed to generate a whole board today, which is not an entirely trivial matter when you're working with hexagons.

Also, I cleaned up a few graphics and made some others that I'll need. Instead of floating the pieces above the hexagons, I'll just have blank hexagon images and hexagon images with each of the pieces shown. That ought to eliminate a layer of complexity, I think.

computer games, computers

Previous post Next post
Up