TacTacToeToo, I mean two
In my last post I brought to life my first Silverlight application, a TicTacToe (Naughts and Crosses) game. As you would expect there were a lot of flaws. It was hastily constructed with no real knowledge about the Silverlight framework. It's also important to illustrate that I am not overly familiar with WPF; since .Net 3.0 beta, I have been working purely in web circles (and still am).
But yesterday I found the WPF reference on MSDN; how relevant! While some things are not quite the same, there is enough similarity that the documentation can help solve most simple learning problems. For example, I found the correct classes to perform a rotate and translate in C# (not in Xaml) in the WPF documentation.
Duh. I should have realised this earlier, but I was too caught up trying to find answers on the Silverlight site and in the SDK. So now I have progressed and am starting to get a better understanding of how things work.
Back to TicTacToe. I've released version 2, which looks a lot like version 1, only that I have refactored code and design somewhat. The only important visual change is the line that appears when you win. This is the object that gets a rotation/translation at times (when you win on a diagonal or vertical) so that code might be of interest to you.
The next version will address the buttons, which really aren't close to being buttons currently. Presumably there are actual buttons, or reusable controls in the May Futures release that might be useful. Oh, and the next version will have an unbeatable computer player! Finally, I want to create some animations as well.
Head to my TicTacToe page for more information on what has actually changed.
But yesterday I found the WPF reference on MSDN; how relevant! While some things are not quite the same, there is enough similarity that the documentation can help solve most simple learning problems. For example, I found the correct classes to perform a rotate and translate in C# (not in Xaml) in the WPF documentation.
Duh. I should have realised this earlier, but I was too caught up trying to find answers on the Silverlight site and in the SDK. So now I have progressed and am starting to get a better understanding of how things work.
Back to TicTacToe. I've released version 2, which looks a lot like version 1, only that I have refactored code and design somewhat. The only important visual change is the line that appears when you win. This is the object that gets a rotation/translation at times (when you win on a diagonal or vertical) so that code might be of interest to you.
The next version will address the buttons, which really aren't close to being buttons currently. Presumably there are actual buttons, or reusable controls in the May Futures release that might be useful. Oh, and the next version will have an unbeatable computer player! Finally, I want to create some animations as well.
Head to my TicTacToe page for more information on what has actually changed.
0 Comments:
Post a Comment
<< Home