The Endless Parade Of Squirrels

Those two squirrel feeders we put up last week? They worked.

sq1

They vastly prefer this one, containing the real ears of (dried) corn. They demolish the corn in only a single day, eating only the germ out of the husk and letting the rest drop to the ground for the birds (and chipmunks?). We’ll be restocking this one for months.

sq2

This one is more work for them, and perhaps not as delicious. It affords us (and the cats) a better view though.

I saw a red squirrel on monday, for the first time in our yard. I had seen some in Albany before, but they are much, much rarer than grey squirrels. Sadly he wasn’t at a feeder, but running away from our yard!

Here’s the few shots of interest taken from the wildlife camera I had placed on our back patio:

SUNP0308 SUNP0313

Isn’t the ‘action shot’ cool? I love crows, almost more than squirrels. Always have, always will. Those are peanuts they are eating – we toss them out the window for the wildlife to snack on.

Last week we had a baby crow living in our yard. He couldn’t fly, and was being fed by parents who cawed noisily whenever we went into the backyard, obviously trying to scare us away. We dubbed him ‘hopping crow’ and kept an eye on him, hoping we’d not repeat the squirel tragedy of the other week in crow form.

Happily, in a few days his fluttery almost-flying turned into the real thing and he took wing. If he’s living in our yard anymore it’s in the trees and not under them. Which is a good thing 🙂

SUNP0304 SUNP0317

The shot on the left is a mystery bird. I tried to identify it, but I’m no ornithologist. My best guess is that it is an ‘i’iwi, and the drab appearance is an illusion brought on by being drowned in sunlight. Anyone else have an opinion?

As for the shot on the right. Well your guess is as good as mine!

A Technical Discussion

So I was thinking yesterday, during a hot walk to the post office “How did Eugene Jarvis do the lasers in Defender?”

I swear this is not a joke post. Such thoughts as this do occasionally work their way into my mind.

To see what I am talking about, here’s a video of the arcade version of Defender:

There are countless amazing things about the game Defender. The sound effects, the controls, the particle effects, the sublime design. All this in a game that is 28 years old.

Pay close attention to the lasers the ship puts out. See how they are not an unbroken line? See how they seem to start as a random stream of particles and then connect into a solid line. They are simultanenously chaotic and structured; solid and discrete. Could this be a representation of the wave and particle duality of light in video game form? Who knows… certainly not me… but I do know the laser graphics are mesmerising and one of the most memorable things about the game.

So I wondered to myself yesterday, in my memory, how did he do these very organic and colourful particle-y laser beams? How did he make each beam unique and therefore special?

I came up with what seems like a good technique. Start with an 1 dimensional array representing the laser. Pick some random positions (on the left side) and occupy them: these are the dots that begin the laser. Then do a pass through the array populating empty spots with a frequency depending on the occupancy of nearest and next-nearest neighbours. This gives a good representation of particles knitting together to form a beam. You could even fake the movement of the laser by making the array width the same as the screen width and base the start on the ship start position (ie. no sprite movement is needed). Using this technique you could even write to the screen memory directly and possibly avoid sprites.

I’d solved it! Randomized laser beams that look like those in Defender! Voila!

But…

Take a look at this video:

It’s a little tricky to see but if you inspect the lasers you will notice they all look… similar.

Can’t decide? This may be clearer:

Nothing special about those lasers. Just lines… but more importantly: all the same lines. (As an aside, that previous video deserves a blog post unto itself…)

So is it because the BBC Micro and the 2600 are craptastic computers that the coders couldn’t reproduce the majesty of Jarvis original lasers? Perhaps, and this is certainly an attractive thought.

But go take a look at the original video again. Look very closely.

Yes, the sad truth: all the lasers in Defender are identical. There is no magic coding at work there. Just a sprite.

Another childhood illusion dashed on the shores of truth 🙁

On The Road!

Memorial Day Weekend: the one time of the year we eat hot dogs!