Red Nose Day Pictures

RedNose

Some of the audience, watching me code under pressure in rhyme

Jamie Wins a Phone

Jamie picks up his winnings. Don’t I have big elbows?

Agnes Picks up her phone

Agnes was the winning bidder of the second phone. This is where the money changed hands….

We’ve done the final tally and it turns out that adding together the sponsorship money, the cash taken on the day and phone auction we ended up raising over 1,260 pounds for Comic Relief. Great stuff. Thanks to everyone who helped. To Microsoft for providing some lovely prizes and an awesome phone, to Adam and Mike for sterling technical support and the audience, for laughing in most of the right places.

You can find a video of most of the event here: I’m trimming the live recording together at the moment, should be available soon. If you have any pictures of the occasion then I’d love to see them. Put them on Flickr tagged Robinrhyme.

Many apologies to the hapless lecturer in the session before mine, who must have been perplexed as to why there was a huge number of students in silly hats waiting outside, and a nervous bloke trying to get in and set up some cameras and stuff…

And now I’ve got a First Year tutorial. Not in rhyme, thank goodness.

Getting a Windows Phone App to Market

Red Nose Game Screenshot
Now you really have to get a copy….

My Red Nose Day application has finally made it to the Windows Phone Marketplace. In spite of my efforts. It is the first fully developed game that I’ve put out there, and getting it out there was quite an experience, especially when it kept failing certification. So that other people can learn from this, and so that I don’t do the same stupid things again, here are some hints for preparing a game for certification.

Consider the Pause and Tombstoning behaviour at the start

I got so carried away with my game ideas that I ended up leaving all the code that dealt with pause and resume, and what happens when the game is tombstoned, until the very end. The plan was to add this in a couple of hours. This did not happen. I spent a lot of time messing around and finally ended up with something that was not correct according to the Marketplace requirements. Foolish me. I had used what I thought was a rather nice fading effect between screens, but this caused me endless grief when I realised that I might get tombstoned during a fade. And the game structure had a huge bearing on what I had to do when the user drops out of a game, something that they can do at any moment on the phone.  Next time I’ll design the gameplay with a view to the fact that my game might get stopped at any instant. 

This should extend to making game objects “tombstone aware”. In other words, don’t try and impose the phone behaviours on objects in your game, make sure that the objects themselves can deal with suddenly having to stop and resume.  This is something that game developers that have not written a lot of mobile games might find new and a bit scary, but it turns out that if the objects are built with this in from the start it makes the game a lot more reliable. My code tried to knock the game engine into a particular state for tombstoning, what I should have done is have states and messages specifically concerned with suspend and resume.

For those that don’t know what “tombstoning” is, it is the recognition of the unpleasant fact that a program on a mobile device is always vulnerable to an interruption that results in the program being stopped or, worst case, removed entirely from memory. Windows Phone programs deal with tombstoning by responding to the various messages that are sent in these situations and the Windows Phone Marketplace has strict standards on proper behaviour.

These are messages are not hard to deal with, but you have to get your head properly around the way they work. You must also not assume (like I did) that Silverlight and XNA tombstone messages are exactly the same.

Make sure the Back button always does something

I made the an assumption that in some screens there was “no need” for a back button, since the player wouldn’t want to go back to the previous screen in that situation. Stupid, stupid, stupid. I tell my students that every time you make an assumption, somewhere a specification fairy dies. I should have read the Application Certification Requirements that state emphatically that the Back button must always do something, either return to a previous screen, exit the app if at the “front page” or pause gameplay.

Make sure that the first page a user arrives at is a sensible one

I was very proud of the way that after a restart my game always went back to the same page it was stopped from. Unfortunately this is wrong. If the user starts a new copy of the game (as opposed to resumes it) then it must go to a starting screen where the Back button can be used to exit the game.  Again, I’d not read the requirements in enough detail to appreciate this.

Make good use of the Testing Reports

The test reports are great. They are actually written by someone who has played your game and will give you a simple sequence of steps that illustrate the broken parts. So work through them carefully. I found that I could  follow their steps and then, having seen the fault, it was quite easy for me to drop into the code and put it right. One tiny thing, when you re-submit an application you lose the reports from the previous run, so if you want to know what you had to fix you should save the pdf files when you have read them.

Keep Moving Towards the Happy Ending

The Marketplace people are great. Don’t think of certification as a bunch of obstacles that you must pass through on the way to getting to market. Instead you should regard the certification team as a bunch of folks who are tying to make you produce a solution that works the same way as all the others on the Windows Phone, and doesn’t do anything stupid.

Anyhoo, search Windows Phone Marketplace for Red Nose Game and let me know what you think…

Kinect and Home Sweet Home

Kinect and Home Sweet Home

Tom and Laurie from Home Sweet Home came into the department so that we could work on our setup for Platform Expo, which is coming up real fast. We had Paul Murphy from BBC Look North along to take some film as well, which was nice. We showed what we had done and most of it worked. To see all of it working you could come along to the Platform Expo a week on Sunday (the 27th) and even drive the music and video yourself.

http://platformexpos.com/

Red Nose Day Streaming Fun

Red Nose Day Streaming

I’ve made a special poster to celebrate…

I’ve sorted out the streaming of the Red Nose Day lecture in rhyme. You should be able to join in the fun and games here:

http://www.ustream.tv/channel/rob-miles-red-nose-day/

The channel will go live on Friday 18th of March at 12:15 GMT.

Be there, join in the fun and win prizes.

And don’t forget to sponsor me:

http://my.rednoseday.com/robmiles

One lucky sponsor will win a Windows Phone device.

Keeping a Cool Lap

image

I’ve never been that bothered about laptop coolers. These tray type things sit underneath the laptop and have fans that help your portable computer nice and cool. However, I picked up a Microsoft one recently and it actually turns out to be quite useful. Not so much for the fan, which I don’t really think a properly designed computer should need, but for the way it keeps the machine off your lap. The Microsoft one also has a foot that you can use to bring a portable to a better angle to use on a desk.

All things considered  there are worse ways to spend 13 pounds or so.

Windows Phone Foamies for Everyone

OLYMPUS DIGITAL CAMERA

The parcel I thought was books turned out not to be. Instead it was packed full of Windows Phone Foamies that Stephanie had sent over for my Red Nose Day Lecture in Rhyme next week.

All this after a dangerous and expensive trip to Sheffield to pick up the parcel. Dangerous because I undertook some dodgy satnav-inspired lane changes and expensive because we stopped off at Meadowhall on the way back.

Anyhoo, I think I can say with confidence that if you come along on Friday there is a very good chance that you will get a foamie. As long as you put some cash in the bucket. I’ve also found out that I’m getting some real, non-foam, Windows Phones from a Very Generous Microsoft to give out. One will be given to a random person chosen from my list of donors on:

http://my.rednoseday.com/robmiles

Give me some cash and you could be on track to get a phone of your own. (you see, I’m getting into the rhyming spirit already). Now, if only I could find something that rhymes with “Silverlight”.

Kinect and Midi at Platform Expo

Kinect and MIDI at Platform Expo

Laurie Welton of Home Sweet Home checking out the Kinect interface.

Spent an hour or so down at the KC Stadium today marking out our territory for the Platform Expo that is happening in just over a fortnight. I’ve taken a Kinect driver from Code Laboratories and some sample MIDI code and we are going to make something that lets you control the music playback and video show using your body as the controller.  I’m working with Tom Watkins and Laurie Welton of Home Sweet Home who fancied having a play with this stuff.

Great fun. We’re linking the MIDI signals to Ableton Live audio and Resolume video systems. I’ve not played with MIDI for ages, it seems to have come on a bit…

Anyhoo, I’m doing something which might be interesting, where we are using video images to perform the MIDI mapping . This should make it really easy to design “human user interfaces” for use during different performances.

Kinect and MIDI Setup at Platform Expo

This is the first version of the program that we tested, and it even mostly worked.  If you want to see it in action, come on down to the Expo at the KC Stadium on 28th of March. That’s the same day as the final of our Three Thing Game contest, which will also be taking place during the expo. Almost as if we’d planned it that way. We’ll have lots of Nintendo 3Ds machines around and there are talks and demonstrations of 3D in entertainment and games, I’m doing a Kinect workshop. There are lots of other platforms and sessions and demos and really good stuff. And there will be lasers.

Robs Red Nose Day Game Takes Shape

Red Nose Game Screenshot

Now with added Nose Images and High Score

The Red Nose Day game is coming along quite well. For something I started at 2:00am in the morning last week while jetlagged it is actually progressing in a reasonable manner. Some time back I read a very good interview with Jordan Mechner, the man behind “Prince of Persia”.

He said some very sensible things about game development and one point he made really resonated with me today. He said that it was OK to play around with ideas and mess about with your game until you find out what it is really about. Once you have got your central game theme sorted you must then build on that like crazy. And you must defend your idea against all.

Up until today I’d got some bits and pieces moving around the screen and some text drawing and screen swapping code, but I didn’t really know what the game was about. But now I do. I’m not saying it is going to be awesome. But it is going to be quite fun.

I’m hoping to finish all the bits and pieces, add some music and get the game into Windows Phone Marketplace by the end of the week so that everyone can get a copy and play with it on their Windows Phone, and donate lots of cash to Comic Relief.

/RedNoseDay

Definitely Not Fixed

OLYMPUS DIGITAL CAMERA

We had another Open Day today. And another Prize Draw. The winner of the copy of my book, pictured above, had the surname Miles. This was not fixed. Not at all.

Note: Eagle eyed readers will of course have spotted that the book above is for version 2.0 of XNA, not the more recent version 4.0. This is because it seems that the copies of my Version 4.0 book are presently in a warehouse near Sheffield, waiting for me to go and pick them up. This is thanks to a particularly shy delivery company who don’t seem to want take the package to anywhere that might have someone able to receive it. Mr. Miles will get his proper version of the book sent through as soon as we have got hold of ours.

Wearing a Jacket Might Make You Nasty

Lowells

I’ve started wearing a jacket for work. I’ve been referred to as “dapper” twice over the last week. Very nice. However, I’ve found that it has made me slightly more nasty. In lectures I’m now trying to stop people from talking as much at the back, and generally getting folk to turn up on time and take part. This doesn’t seem to be a case of “clothes maketh the man” as such, but it does seem that clothes maketh the man slightly more grouchy.

Or perhaps it is the jetlag.

Sign up now for Three Thing Game

ThreeThingGame Postcard

Three Thing Game is a game development competition being run for students by the University of Hull. It will run for the week starting 21st March . The final will be on Sunday 27th March at the Platform Expo event, after a 24 hour intense programming session on Hull University campus the night before.

http://platformexpos.com/

The games will be written using XNA for Windows PC, Xbox 360 or Windows Phone 7. Microsoft are sponsoring the event and providing Windows Phone 7 devices for each team member as prizes.

If you are a student at Hull and want to form a team sign up (and you really should) you can find out more here:

http://www.threethinggame.com/

Red Nose Day and Windows Phone Fun

Robs Red Nose Day Windows Phone App

I’m doing another Lecture in Rhyme for Red Nose Day, March 18th.

The lecture will be all about Windows Phone Development and will be entirely in rhyme, except where I mention SilverLight, which doesn’t seem to have much that rhymes with it.

You can find out more, and how to sponsor me, here:

/RedNoseDay

The Red Nose Game is also coming soon for Windows Phone….

Film Review Bonanza

image

Went to see “The Adjustment Bureau” today. Great film. A bit like Inception, but done better in my opinion. The story is based on one from Philip K. Dick. There have been so many films based on his writings that the next one will have to be a cinematic reworking of his laundry list. But I digress. The film tells of a pair of lovers star-crossed by fate or, more accurately, the Bureau of the title. Well acted, with very engaging leads. And a satisfying ending. It reminded me of a time I had to mend a desk in my office. Although actually that was “The Bureau Adjustment”. Anyhoo, enough of the bad jokes, good film, go see it.

image

Talking of “star crossed lovers”, here’s another pair. A week or so ago we went to see ”Gnomeo and Juliet” which tells of a couple of ceramic lovers of the garden gnome variety. This film has just enough wit and originality to sustain a 90 second trailer, which was unfortunately the thing I saw that made me decide to go and see it. Movies like this really make you appreciate Nick Park and Pixar, who can make producing this kind of fare seem effortless.  If you are five you might like it I suppose, but for the rest of you, just watch the trailer.

image

Billed as ‘the film that cost over 20,000,000,000,000 to make’ the movie ‘Inside Job’ is a documentary that tells the story of that economic crash thingy that was all over the papers a couple of years ago. You know, that thing that is going to blight the lives of an entire generation or two and is set to recur every now and then until the world realises that banks that are ‘Too Big To Fail’ are going to keep trying to.

I caught this film on the plane on the way home. You must see it too, if not for the lovely helicopter shots of cities then for the  squirming of some of the idiots daft enough to appear and try and justify the indefensible.

I’m sure it over-simplifies here and there and the viewpoint is not particularly balanced, but if only a fraction of what the film reveals is the case then the whole world (and I do mean everyone) has been taken for a massive ride. It has always puzzled me that things can just “go up in value” for no readily apparent reason. It turns out that they can’t, and if you base a business on this premise then every now and then we will have one of these massive crashes. If there ever was a job for the Adjustment Bureau then this is it.

Imagine Cup Live Meetings Next Week

Imagine Cup

I’m running two more Live Meetings next week, all about the Imagine Cup Software Design judging process.  The first one is on Monday, I should have recovered from my jet lag by then.

If you are entering, or thinking about it you really should come along. Here’s how:

The Live Meeting will be Monday, March 7, 2011 at 19:00 GMT and again on Tuesday, March 8, 2011 at 6:00 GMT. The same content will be reviewed at both sessions, so choose the time that works best. To join:

  1. Install Microsoft Office Live Meeting. We recommend that you do this several hours in advance.  
  2. Join the meeting on March 7, 2011 at 19:00 GMT. Find out what time this is in your country/region.
  3. Join the meeting on March 8, 2011 at 6:00 GMT. Find out what time this is in your country/region.

You can find more details, and recordings of the earlier meetings, here:

http://www.imaginecup.com/competitions/software

Steve Balmer Speaks

Steve Balmer

Say what you like about Steve Balmer, head honcho at Microsoft, but he can work an audience. We saw him in action today at the summit keynote. At the end of it I was left feeling that at the moment Microsoft doesn’t have all the answers, but it is certainly asking all the right questions.

Reduced Speed Zone

In the evening we headed out to Jillian’s Billiards for some fun and games. The weather was dark and wet, something of a Seattle speciality it would seem. I got a bit carried away taking pictures of the traffic through the bus windows.

Space Needle

I think I was lucky to get this shot, which has the Space Needle in it – perhaps with a bit more post-processing I can actually make it visible….

We had a great time, I even managed to get a go at table tennis. And no, I didn’t fall off the table. On the way out to the taxi we were talking about business cards for some reason and I said that I thought it would be really cool to be able to whip out a playing card and say “The card you chose was the three of clubs” when someone gave me their business card. Well, I thought it was mildly amusing. Then Jeff produced this:

Three of Clubs

I think he had the other 51 cards with him as well.

Kudos to the Microsoft folks for a giving us such an interesting day and responding so constructively to the stuff that we said. Special shout out to Stephanie who is one of those organisers around whom the right things just seem to happen as though by magic.  Thanks for making everything work so well.

Return of the Midnight Coder

Fresh Fish

I’ve got this cunning plan for my trip to Seattle to avoid the dreaded jet-lag. The idea is to go to bed early each night and then get up around 2:00 am and spend a few hours awake doing stuff (which usually means writing some software). I then go back to bed around 4:30 and get a couple of hours more sleep before rising for the day. This should mean that I don’t actually adjust to local time, so when I go home I shouldn’t suffer too much.

Unfortunately this plan was somewhat sabotaged tonight when I ended up out and about until 10:30pm…. But it was a good night though.

Hyatt Lobby Roof

This is what you see in the hotel lobby if you look straight up.