Steven Nagy .NET

Wednesday, 9 May 2007

My First Silverlight App

I like to learn by doing. So after watching the ScottGu video on the
Silverlight website I decided to learn Silverlight by creating a Naughts and Crosses game (Tic Tac Toe). You can see my initial attempt here.

So I suppose its pretty crappy to look at, but hey, I'm no designer. And its my first app, so what do you expect??? I didn't want to post it until I could go back and make it better. It needs serious refactoring, there's missing functionality, and its probably doing things the "wrong way".

But Scott Barnes encouraged me to publish it now so I have. The idea now is to display the flawed project, and then post each iteration as it improves. At the end of each iteration, I'll post details about the changes and what improved. The focus won't just be about Silverlight specific functionality. For example, the way the CROSS control is loaded is purely hardcoded. Ideally there should be a dynamic way to load different CROSS Xaml files depending on user selection, such that a designer could just add a new Cross object from Expression Designer into a /Cross/ folder.

Hopefully as we progress on this project we'll come to realise some new design patterns for creating functionality that is friendly to designers and developers both, something that might not be so well defined because such integration hasn't existed before now.

So I am completely open to suggestions about how we progress from here. Oh, and to contributions too.

Labels: , , ,

6 Comments:

  • Hi Steven! Love the app: 'coz it's the first one that I actually beat! Yay!

    And, you're right about the design patterns for the designer/developer workflow. Talk about merging PSD files via SVN... :)

    Oh, and I too posted my "hello world" Silverlight app: A pong kinda game[http://blog.yuvisense.net/2007/05/03/silverlight-pong-clone-and-silverlight-flash-killer/]. Not very well developed, looks like it was designed by a developer who coded the XAML by hand (J) and has some bugs. But hey, we're learning, aren't we?

    Thanks Steven for posting the source code. I'll check that out tomorrow morning when my Dad's not shouting at me to go to sleep :(

    By Blogger Yuvi Panda, At 11 May 2007 01:43  

  • P.S. Subscribed! And, why did you have to choose blogger?

    By Blogger Yuvi Panda, At 11 May 2007 01:43  

  • Thanks for subscribing. I think we can build some good patterns for helping designers and developers work together. Nice app as well.

    By Blogger Steven Nagy, At 11 May 2007 07:00  

  • Server Error in '/' Application.

    By Blogger Catalina, At 19 July 2008 03:42  

  • Couldnt download.. please do help me my email id is skartikcse@gmail.com.. send me the source

    By Blogger kartik sukumaran, At 10 February 2009 14:55  

  • Hi,
    This code was for version 1.1 and is over 2 years old. There are a lot better resources out there than my simple game. I'm not sure I even have the code for this anymore but can find it if you REALLY need it. Just let me know by comment reply.
    Thanks,Steve

    By Blogger Steven Nagy, At 10 February 2009 16:57  

Post a Comment



<< Home