| |
 |
Sunday, February 24, 2002 |
I want to release the Klondike game I wrote in REALbasic for a MacTech Programmer's Challenge. (I came in third!) I just need to fix things up a bit. I remember spending a lot of time getting the dragging right, but it never quite worked. The problem was that to really do dragging right you need to take a snapshot of the window behind the card being dragged so you can erase the card with what is behind it. But taking a snapshot of the entire window took too much memory for the Mac OS 9 version of the app. Mac OS X doesn't care about memory, so it isn't really a problem there. But in Mac OS 9 I would have needed to make the memory partition so huge to take the snapshot that I just didn't like it. The other way to accomplish the same thing would have been to take a much smaller snapshot of just that part of the window that I needed. But, if I remember correctly, the REALbasic API wasn't quite going to let me do that. So instead I did this complicated update of just the pixels that were being uncovered around the card during the drag. It worked. But it flashed around the edges of the card.
Now playing around with something that appears to do what I want. It requires that I do all my drawing in a canvas that sits on top of the window. What I do is make a Picture and draw the canvas into the picture at an origin that is shifted up and to the left. That way, only the part of the canvas I want is actually drawn into the Picture. The rest is clipped. Then I have a Picture that I can use to erase the card. I've managed to get this to work in a test case and now I just need to retrofit my Klondike game to use this new drawing and dragging procedure.
comment () 10:52:05 PM
|
|
I'm trying to put the finishing touches on a book of Baba pictures. I'm using iPhoto to make the book. For $30 you get a printed book with ten pages of your pictures. I'm also planning to make one of our trip to Joshua Tree.
comment () 10:25:16 PM
|
|
I got my haircut today. Finally. My wife cuts it for me. She hates to do it. I don't blame her. It's a thankless job. I guess I should thank her :) I just had a weird thought. Perhaps I look like an ijiwaru with my hair cut. Ijiwaru is a Japanese word that means something like meany. So perhaps I look like a meany with my hair cut. I have this feeling that my wife's attitude toward me changes when my hair is cut and maybe that's because I look like a meany. Of course, I'm mean all the time, but it is possible that I'm easier to take when my hair is too long.
comment () 10:22:35 PM
|
|
The only reason the pictures had such energy was that I had utterly lost interest in photography as art. [Jonathon Delacour]
Something I probably ought to remember as I get thing about getting back into B&W photography.
comment () 7:35:32 PM
|
|
When I started this weblog it was my weblog. Now I discover -- and I have to tell you it's disconcerting -- that I'm getting a crash education in cooperative writing. This isn't what I signed up for and yet it's fascinating and exhilarating and I wouldn't want to miss it for the world.> [Jonathon Delacour]
Right. Bloggers are building a community text. Of course, it is a different kind of text than that built by a forum, which is the text being built in the comments part of a post. When I post to my weblog I have no idea whether anybody will read it and respond. Actually, I have a pretty good idea that when I post nobody is reading :) But when Jonathon posts he's pretty sure people (like me) do read, but he probably has no idea what the responses (like this one) are.
comment () 11:41:14 AM
|
|
As the warlord spoke, his voice softened and he lowered his eyes at the mention of the great Buddhas. Behind him, the sun rose and cast sharp shadows across the empty alcoves, timeless and eternal. [latimes.com]
This just makes me cry.
comment () 11:18:54 AM
|
|
It turns out that weblogs.com isn't down. The problem is that roadrunner's routers are screwed up. I can't get to half the web. Interestingly, my Radio runs remotely from work. The connection to the internet from there is fine and Radio has no trouble uploading my posts to the cloud. I just can't see them from home.
comment () 10:57:25 AM
|
|
The Spies Who Called the Shots: This is a simply amazing story of some of the Afghani heroes who spied for the US during the bombing of their country. One of the spies was beaten to death without revealing he was a spy.
comment () 10:54:13 AM
|
|
© Copyright 2002 Will Leshner.
|
|
|
|
|