If broken it is, fix it you should

Using the powers of the debugger to solve the problems of the world - and a bag of chips    by Tess Ferrandez, ASP.NET Escalation Engineer (Microsoft)

Silverlight 2.0 Walkthrough – Creating a “Traffic Jam” game

Silverlight 2.0 Walkthrough – Creating a “Traffic Jam” game

  • Comments 12

This series of posts are not really in-line with my normal debugging posts, but I just created a simple Traffic Jam game in Silverlight and thought I’d make it into a “lab series” that you can go through if you are getting started with Silverlight.

The game is called Seattle Streets and it based on the popular board game Rush Hour® where you help a little red car move to the Exit square by moving the other cars out of its way in as few moves as possible.

The project for the finished game is attached to this post…

Design is not really my forte, this is what the game will look and feel like when we're done:

image

I have divided it up into a number of tasks:

Part 1 - Creating the main layout

Part 2 - Creating a Car user control

Part 3 - Using Linq to XML to read and generate the levels

Part 4 - Adding drag and drop functionality to move the cars around

Part 5 - Storing high scores in Isolated Storage with Linq to XML

 

In order to get the most out of these posts you should go through them in order.

Have fun,
Tess

Attachment: SeattleStreets.zip
  • PingBack from http://blogs.msdn.com/tess/archive/2009/03/04/silverlight-game-part-1-creating-the-main-layout.aspx

  • Thank you for submitting this cool story - Trackback from DotNetShoutout

  • Excellent, thanks. Will use this to help me get familiar with Silverlight.

  • so cool~, but how long the silverlight can "defeat" FLASH

  • I like it.  Thanks for the tutorial.  I haven't done any work in Silverlight, yet, but I have done work in Flash.  I like how you can work in Silverlight using the Visual Studio IDE.  Can't wait to try it.

    How about a NYC version?

    Paul St. Amant

    Softomic LLC

  • Great Tess! Thanks very much for your sharing!

  • Es Sábado en la noche y estoy aún en Seattle organizando mis cosas y haciendo investigación sobre toda

  • Great Tess! Thanks very much for your sharing!

  • Hey Tess,  How much time do you spend outside of work on software development and/or other programming projects? stuff ya do for fun? I am assuming sitting down and coding up a quick lil silverlight game was not done at work or maybe it was bleh wish I had the time to do that at work. what is a work day anyhow? 9-5? read some posts about you still being at work at like 11p or something crazy like that. Sorta feeling the itch to do some programming outside of work but its beginning to feel like a drag programming all day and then coming home to do more programming even if it is just for fun and personal knowledge but meh. wanted to do silverlight stuff but kept getting annoying with the depoloyment features. have to do a publish copy and paste er silverlight 2+ just makes the whole friggin thing feel like a drag just like work.

  • I think my workday is pretty typical for Sweden, normally 8-5 with some flex depending on what I'm working on, so not exactly crazy workhours :)

    Computers are one of my biggest hobbies, so I feel like its more fun than a drag to try things in the evenings in front of the TV at night. I would have to say though that on average I play more pool and x-box than write code at night:)

  • Hi, I want to do this project but I do not know where to find images of the cars. Can anyone help me? (I would need vector images).

    Thanks!

  • Alfred, The "images" are created in part 2.  They are not actually images but XAML controls, but if you want to make the game more appealing you should probably create nice car images in expression design or similar.

Page 1 of 1 (12 items)
Leave a Comment
  • Please add 5 and 7 and type the answer here:
  • Post