Jan 26

More than 60 creations have been submitted to the MIX09 - 10K Challenge!! Everyone must spare some of their time to take a look on all the entries. They are brilliant and creative! I am sure you can get a lot of inspirations there!

The deadline of the entry submission is 30 January 2009. If you want to win for 1500 USD and free entry to MIX 09, create and submit you entry now!

Below are some of my favorites entry in the competition. Vote for them if you like it!

Sokoban

This is of my favorite game when I was young. I used to spend a lot hours in completing all the stages. This Silverlight version provided 30 stages. That’s really a new challenge for me! Can’t you believe that the file size is just 10K?

http://2009.visitmix.com/MIXtify/TenKDisplay.aspx?SubmissionID=0054

Silverlight Sokoban 

We are bugs!

This game is simple, but yet creative! The game logic is similar to Snake Snacks. You have to control a flying bug and eat all the food on the stage. However, the main difference is that, once you have collected one food, it will create an enemy which attempt to kill your life!

http://2009.visitmix.com/MIXtify/TenKDisplay.aspx?SubmissionID=0072

Silverlight We are bugs

Paper Ball

That’s a fantastic game. In this game, you have to use your rugby players and get the ball into enemy field. Similar to real rugby, your player can also collide with enemy as well.

http://2009.visitmix.com/MIXtify/TenKDisplay.aspx?SubmissionID=0076

Silverlight Paper Ball

Warp Jumper

This is a 3D style game. You have to move your ball reaching the destination using minimal time. Writing 3D stuff in Silverlight is not easy, that’s why I love it.

http://2009.visitmix.com/MIXtify/TenKDisplay.aspx?SubmissionID=0083

Silverlight Warp Jumper

Bitster

Another funny application. The application can load up a bitmap image and display it with a funny grid style. Actually, there is no native bitmap API in Silverlight. This entry is intelligent and requires a lot of skill!

http://2009.visitmix.com/MIXtify/TenKDisplay.aspx?SubmissionID=0086

 image

Jan 20

This is the second game example in Shine Draw. Snake Snacks is the most famous mini game in mobile world. I am sure everyone has played it before. The logic of this game is very simple and it’s not that hard to implement as well.

Samples source codes are provided. If you are interested to implement game, I am sure it’s a good place for you to start!

I will continue to implement more game in the coming day. If you have any simple game idea, please let me know and I can help you to create it.

Let’s Snake Snacks!!

Comparison

Flash implementation: 45 minutes
Silverlight implementation: 1 hour 45 minutes (Implemented First)
What’s the difference?

  • Check the pressed Key Code [AS3] vs [C#]

Source codes

Flash

Silverlight

Check the pressed Key Code [AS3] vs [C#]

If you want to check the capture the pressed key code, the best way in Flash is to attach KeyBoardEvent to the stage. (To make sure that it can always capture the key board event). For example:

// AS3
stage.addEventListener(KeyboardEvent.KEY_DOWN, on_key_down);

private function on_key_down(e : KeyboardEvent):void{
	if (e.keyCode == Keyboard.RIGHT) {
		// do something
	}

	switch(e.keyCode){
		case Keyboard.RIGHT:
		  // do something;
		  break;
	}
}

The sample for Silverlight, I will prefer to attach the handler to the RootVisual.

// C#
App.Current.RootVisual.KeyDown += new KeyEventHandler(RootVisual_KeyDown);

void RootVisual_KeyDown(object sender, KeyEventArgs e)
{
	if (e.Key == Key.Right){
		// do something

	}

	switch (e.Key){
		case Key.Right:
		  // do something;
	}
}