Wednesday, August 10, 2011

In two hours

In two hours, some jerks planted 100 trees, a theoritical plane will fly from London to Tokyo and you can learn the Russian alphabet. If you were me last night (chances are you weren't) then you will have moved some text around using C#.

See what I wanted was to create a smooth and most excellent transition from game play to a score screen. Something like in the video below. Can you believe someone was lame enough to save the game state just before the score screen. Go back to it, record his high score with a capture card and then post it to YouTube? I'm fairly certain PSCHAOS isn't the sort of person who is fun to spend time with.


Alright so it wasn't too tricky. Fade out, scroll in some text. Piece of cake. After an hour I had all the transitions down and the final score screen looked like this:


I wasn't happy with it. So I spent over an hour and came up with this:


It is quite possible you did not notice the difference. My brother didn't. It was late though, and he was in a herbal mood. If you also are in a herbal mood, you may not have noticed that the second version has the bottom three lines arranged in a nice way. It took ages because I may not have done it in the best way. I split the bottom three lines into three objects. Each with three sets of co-ordinates. A start position, a current position and an end position. So as time passes it's position is interpolated onto the screen.

This took two hours. I spent two hours working on something that will appear on the screen for about 10 seconds. Jonathan Blow talks about programming to get things done as quickly as possible.

I didn't quite manage that last night.

2 comments: