Writing

There should be a corollary to the old adage “Be careful what you wish for” which is “Be careful what you promise to do”.

Some time back I promised to write some XNA courseware. A whole course worth in fact, based on my XNA book.  This has turned out to be a non-trivial exercise. In fact I’ve been writing pretty much continuously for the last fortnight, around 10 hours a day, 7 days a week. And at the time of writing I’ve reached chapter 12.

Silly me.

The problem is that after a day of writing I don’t really feel that keen to trot out some fun prose about what kind of day I have had because, quite frankly, at the moment I can’t tell them apart. And I can’t even think of novel combinations of the “I have been mostly writing today”.

The good news is that some day soon you will be able to download and use my XNA course material. And I jolly well hope you find it useful.

Breaking Changes in XNA 3.1 SoundEffect

I hate breaking changes. They are like getting into your car and finding that the steering wheel is now the gear lever, and the seats are facing the other way.

Generally speaking the people who make the software try to avoid them too, which is as it should be. But every now and then they make the judgement call that somebody else’s pain is worth their gain, and so they go and move the universe around a bit.

They have done it with the move to XNA 3.1 from XNA 3.0. XNA 3.0 introduced a new SoundEffect type which made it much easier to make sound. Unfortunately, in its original incarnation this type also made it easy to inadvertently make sound that stole all the sound channels by mistake, and so they have fixed this in version 3.1.

Essentially, in XNA 3.0 the SoundEffect.Play() method used to return a reference to a SoundEffectInstance object, that you could then tweak to change some of the properties of the playing sound. This was kind of neat, except that if you ignored the return from Play it meant that the SoundEffectInstance that was created ended up being left hanging around, probably hogging a sound channel, until the garbage man got around to killing it off. If your game was well designed and looked after memory properly this may not happen of course, and so you would run out of sound channels for no good reason.

In XNA 3.1 the same Play method returns something different. It just sends back a boolean value that indicates that the sound is playing correctly. To get hold of a SoundEffectInstace you have to call the aptly named CreateInstance method on your SoundEffect. All very sensible, and much less likely to hog all the sound channels.

However, if you have just written a book which carefully describes the way that XNA 3.0 works in this respect (just like I have) then you are left wondering why they didn’t add an extra method (perhaps called QuickPlay or something) and leave the old Play intact…

Oh well.

Happy Birthday Me

Another year older and deeper in debt. As the saying goes. But at least I got to go to Alton Towers. (being the birthday boy and also the driver means that you do get some privileges it seems).

I’m not a big fan of big rides, I just like the attention to detail and the general atmosphere of these places. Of course Disney do it best, but Universal Studio and Alton run them a close second. Alton Towers doesn’t have a huge stable of TV and film back story to beef up its act, but it more than makes up for this with fantastic grounds around the park itself.

3763235990

A good place to be

We had a great time. I went on some of the less demanding rides and the weather was kind to us. What more can you ask?

Oh and many thanks to the people who flocked to my FaceBook page and wished me all the best. It almost makes me wish I posted stuff on there. Perhaps I will one day, just before it goes out of fashion…

Harry Potter and the Half Blood Prince Movie Review

This is the nth Harry Potter movie, in a series of n+2. I don’t know all the details about the numbering really I’m afraid. The movies, along with Harry, have changed a bit over the years, from an apple cheeked youngster getting into wizard scrapes we now have a somewhat more angular, and angst ridden youth who spends a whole film doing not very much.

That isn’t to say it is a bad film. The 153 minutes pass smoothly enough and there are some story developments although, like the last film, they all happen in the last twenty minutes or so. You get the feeling that this film (and probably the next one too) are treading water a bit until the real baddy turns up and we can get the big guns out. There are some things that seem to happen just to give a bit of light relief from all the unrequited love and gathering gloom and doom, but they are all very well done. Harry Potter, if nothing else, is a mark for a very high level of production quality and a whole bunch of excellent British character actors turn out to show their skills.

If you like Harry Potter, and have read the books, then the film is for you. If not, they you probably wouldn’t go near the film anyway.

Anvil the Movie

What do you do if you’ve been trying to make it as a Rock God for thirty years and not made it yet?

Keep trying.

The story of Anvil is the kind of thing you wouldn’t make up, because nobody would believe you. The tale of two childhood friends that formed a band, headlined in Japan thirty years ago as the Heaviest of Heavy Metal and then, through bad luck and bad management, totally failed to go anywhere, is utterly implausible.

And yet it works, mainly due to the likeability of the two men behind the band. When we first meet them they are going about their day jobs, delivering school dinners and doing a bit of building work, planning a tour of Europe that could be their big break.  Except that it doesn’t really quite turn out like that.

So they come back again, and try with their thirteenth album to break through into the mainstream. And then? Well, you will have to get to the movie and see.

But I don’t think you will be disappointed.

Horizontal Rain and Degrees

Number one daughter got her degree today, so it was off to York to sample somebody else’s degree ceremony for a change. It was a great occasion and a good time was had by everyone although the experience was slightly marred by the cloudburst and he horizontal rain that we got as soon as we arrived which persisted until we left.

The ducks (there are lots of them about at York) looked like they were really enjoying the weather, but I think they were the only ones. After this lot my suit definitely has an appointment at the dry cleaners. In fact, anything with the word dry in it sounds good to me at the moment.