Category: Tech

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 🙁

UFO Failing

This is my most popular Youtube video:

Right now it has 15788 views, and yesterday I received an email from Youtube that the video is now eligible for advertising and payment. If I chose to create a special type of Google account, they would randomly place adverts before this particular video. Each advert viewed would earn me $$$, with the catch being they only pay out in $100 increments.

I didn’t get far enough to see exactly how much money would be earned per view, but I’m guessing it is in the tenths or even hundreds of a cent 🙂

Here’s some stats on the video itself, just because I love that Google provides them:
– 58% of viewers are female
– The two most popular demographics are 13-17 (36%) and 45-54 (23%)
– 60% of viewers find the video via Youtube’s “related videos” sidebar
– The three top countries by viewer (in order): Japan, Hong Kong, Singapore
– The three top countries by commenter (in order): USA (36%), Australia (19%), Chile (11%)
– The video spiked in popularity in January 2009, just over a year after it was added, but (inexplicably) is at its most popular right now
– The most common google search that leads to this video: “ufo catcher sydney”
– The most famous non-google referral: facebook.com (the video has been embedded in two, unknown-to-me, profiles)

I’m not signing up for Google sense, since I suspect the sun will burn out before the video receives enough views to pay out. But it’s nice to know people are watching.

It’s worth noting that the second in my ‘UFO Catcher Trilogy’ is earning views much faster than UFO Failing:

Touch Generation

So for those that somehow have avoided the media saturation, Apple launched a new device last Saturday called the iPad. It is a portable computer (or is it?) with a touch screen, and comes preloaded with software for the internet, email, video, music and a few other useful tasks.

DSC01186

I have evangelized this device already, but not until Saturday had I the chance to actually use (or even see) one first hand. So now I own it, and have used it for a few days, what are my impressions?

Let me put it this way: logging on to type up this blog entry is the first I have used my desktop since the iPad arrived. Everything about the iPad is so user-friendly and… uncluttered than a desktop (and I say that as someone who could be called a ‘techie’) that the experience is just… refreshing for lack of a better word.

I’ve entered all my email accounts into the device, all my contacts and all my web bookmarks. I’ve set up an RSS reader, a pdf viewer and even started planning our upcoming trip in the calendar. I truly believe the iPad will (has?) become my device of choice for the internet as well as general organizational productivity, and there’s no question it will drastically cut down on the usage of my desktop.

This is not to say it is (at least currently) a full computer replacement. For instance I cannot yet make a blog entry on it that includes images. I can’t dump photos directly onto it from a memory card. I can’t do video editing or processing. I can’t do programming, word processing or use excel.

Some of these I can’t do because the device doesn’t have the hardware (such as dumping photos). Some of them are due to a lack of software. All of these things may, one day, be possible by the iPad. Some of them (spreadsheets, word processing) already are if I buy the correct software.

In short while it is currently a fantastic device for general internet use and ‘fun stuff’ it is not yet a replacement for everything you use your computer for.

However – and this is a big however – studies have shown that the vast majority of people use their computers almost exclusively for the internet. Think about what sort of computing you do at home. How often do you do anything other than web surfing or emailing? My guess is not often. Now realize the iPad brings an arguably superior internet experience than your computer (I cannot talk enough about how good the touch screen works) and think again about it as a viable replacement.

DSC01188 < pdf reader

There are detractors for this device. Many can be dismissed as the anonymous jealous of the internet, but a lot of press has recently been given to condemning Apple (who controls the distribution of the 150,000 applications available for the iPhone OS) for limiting or banning certain types of software (such as of a sexual nature or politically inflammatory). I believe such arguments can be dismissed for one reason: the iPad has a fully functional internet browser.

Other criticisms of this device are dismissible for simply condemning it for what it is not. “But it’s a big iPod touch!” Yes, yes it is, and this is exactly why it is so good. “But it doesn’t have Flash!” No it doesn’t, and soon enough the internet won’t either. “But it doesn’t have a keyboard!” No it doesn’t, but those that criticize this lack are almost certainly those that haven’t used the touch keyboard and realized just how good it is.

I love the iPad. Of course I expected to but I honestly am surprised by just how much I like it, and by how much I want it to represent the future of casual computing. To the skeptics I say “Give it a chance.” I think they may be as surprised as I am by how well Apple has crafted not only the hardware, but the software and indeed the entire experience of the iPad.

DSC01187

If you have any questions about the iPad please put them in the comments.

And BS: we have to get the SDK for this thing and start making some apps!