Silverlight Game Programming for Total N00bs

Silverlight?

Silverlight is Microsoft's answer to Adobe's Flash, which has become wildly popular for casual game creation (Flash, not yet Silverlight).

If you are a .Net programmer who would like to try your hand at making a casual game, then you are in luck! Silverlight is your ticket to ride.

Casual games?

OK, what is a "casual game"? Are there "formal games" where you have to wear a tux? Maybe on Linux, but not on Windows! You see, Linux has this mascot... and he's called... oh never mind.

Casual games are a category of games that are geared towards an audience other than "hardcore" gamers. In other words, games made for the mainstream player who has a few minutes to kill rather than hours/days/weeks/months (or in the case of something like World Of Warcraft, years).

Games like Halo, World Of Warcraft, etc. are considered Triple A games. These are games that push the boundaries of technology and are made by huge teams of programmers, artists, designers, caterers, marketers, haberdashers, etc., etc. Literally hundreds of people are involved and the budgets are enormous. If you are reading this blog, I'm guessing you aren't going to be making those games...

One hand clapping

To jumpstart your learning process, I have written what has to be one of the simplest games ever. My goal was to make code you could get your head around in just a few minutes and then grow from there.

Introducing: PracticePong.

practicePongFull

PracticePong is Pong... SIMPLIFIED. But, wait! Isn't Pong already pretty darned simple? Yes, for an actual game. What I'm making is a Practice Game, that doesn't try to be fun, but rather show you the parts needed to make a game without ANY extra stuff to confuse you.

So in PracticePong you only get one paddle. The Evil Computer gets none.

If the ball hits the left wall, you get a point. If it hits the right wall, the Evil Computer gets a point.

When you move the mouse up and down, the paddle follows.

When you click the mouse button, the ball launches. Even if it is already in play. Remember, this isn't really a game... just a tutorial.

There are horrible, horrible sound effects and graphics. But, the point is, there aren't many of them.

Use The Source

Here is a link to a ZIP file that contains the Visual Studio 2008 project. You will have to install the Silverlight tools before you can load it, however.

There are basically 3 xaml files (page, ball, and paddle) that represent very simple objects that will be on screen.

All the code is in page.xaml.cs and is pretty much a tutorial in and of itself.

There is also a website to host the page where the Silverlight lives.

Thanks

Thanks to several people who helped get me rolling on the right path.

First is Keith Rome. He spoke at our GGMUG meeting back in June and did a very good tutorial on getting started with Silverlight game programming.

Next is Bill Reiss over at Silverlight Games 101 for his tutorial series.

Then there is Andy Beaulieu who made the outstanding Destroy All Invaders game. I learned a lot from his source.

Hope you enjoy PracticePong and go out there and make some fun games!

Posted on 8/13/2008 7:26:43 PM by jeffa

Permalink | Comments (44) | Post RSSRSS comment feed |

Categories: .Net

Tags:

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Related posts

Comments

August 17. 2008 14:15

Pingback from ggmug.com

Great Fun At August Meeting

ggmug.com

June 25. 2009 18:15

What a great info, thank you for sharing. this will help me so much in my learning.

Tukang Nggame us

July 7. 2009 02:58

Great Fun At August Meeting!!

club penguin cheats gb

July 28. 2009 00:14

Hey,
Nice post.I got many ideas. I visit again to this site if there a new improvement...

cricket scores us

August 26. 2009 08:17

This gonna be the one of the best post that I have read. Hoping that you will continue doing the same great post as time goes by. I just want you to know that your post contains a a handy information that I can kept forever. This gonna help me to solve my problem. Thank you so much.

Giocare al blackjack us

August 28. 2009 01:36

Huh. Didn't notice that you'd just posted this a week ago. Great timing!.....I visit again to this site if there a new improvement...

La roulette gratis us

September 10. 2009 13:37

Extremely long but very useful and informative article. How i wish i can do all of that in a short period of time. But for sure doing those will produce results. I will try to spread your words through my blog and link it back to you. Thanks a lot for those tips.

plumber mosman

September 13. 2009 11:24

Toto ozn�men� o stavu doru.en� je generov�no automaticky.

payday online us

September 13. 2009 20:11

I leave a lot of comments on a lot of blogs each week - but there is one situation where I rarely leave a comment - even if the post deserves it.Good work

payday loans us

September 14. 2009 07:26

I havent any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us.

payday online us

September 14. 2009 12:07

I havent any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us.

payday online us

September 14. 2009 18:07

I havent any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us.

payday online us

September 14. 2009 21:55

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts.Any way Ill be subscribing to your feed and I hope you post again soon

payday online us

September 14. 2009 22:32

I havent any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us.

payday online us

September 14. 2009 23:16

I havent any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us.

payday online us

September 15. 2009 00:23

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts.Any way Ill be subscribing to your feed and I hope you post again soon

payday online us

September 15. 2009 06:16

I havent any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us.

payday online us

September 15. 2009 06:28

I havent any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us.

payday online us

September 15. 2009 06:42

I havent any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us.

payday online us

September 15. 2009 10:53

I havent any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us.

payday online us

September 16. 2009 07:12

Easy option to get useful information as well as share good stuff with good ideas and concepts

payday loans us

September 16. 2009 09:59

Easy option to get useful information as well as share good stuff with good ideas and concepts

payday loans us

September 20. 2009 23:12

We are a group of volunteers and starting a new initiative in a community. Your blog provided us valuable information to work on.You have done a marvellous job!

payday loans us

September 21. 2009 02:47

We are a group of volunteers and starting a new initiative in a community. Your blog provided us valuable information to work on.You have done a marvellous job!

payday loans us

September 21. 2009 07:20

We are a group of volunteers and starting a new initiative in a community. Your blog provided us valuable information to work on.You have done a marvellous job!

payday loans us

September 21. 2009 11:39

We are a group of volunteers and starting a new initiative in a community. Your blog provided us valuable information to work on.You have done a marvellous job!

payday loans us

September 21. 2009 12:22

We are a group of volunteers and starting a new initiative in a community. Your blog provided us valuable information to work on.You have done a marvellous job!

payday loans us

September 21. 2009 19:09

We are a group of volunteers and starting a new initiative in a community. Your blog provided us valuable information to work on.You have done a marvellous job!

payday loans us

September 21. 2009 19:23

We are a group of volunteers and starting a new initiative in a community. Your blog provided us valuable information to work on.You have done a marvellous job!

payday loans us

September 21. 2009 19:35

We are a group of volunteers and starting a new initiative in a community. Your blog provided us valuable information to work on.You have done a marvellous job!

payday loans us

September 30. 2009 05:39

Silverlight Game Programming for Total N00bs , intrigued me. I have set out to develop using Silverlight but am finding it is a big learning curve. My previous experience is with php, mysql, most linux based tools and flash. The challenge of employing Silverlight to get an acceptable layout that runs rapidly in all the leading browsers, IE, Firefox, Safari and Google Chrome can be a big headache which is taking me umpteen hours to solve. Absorbing to study your thoughts and the remarks in your website on Silverlight. I feel the tutorial sites and Microsofts Silverlight site are strict and address the same points, discussion in blogs often references genuine ways to beat issues that takes me through the learning curve more rapidly. Thank you for the post, it has helped in a moderate way to get me through the migration.

Boiler insurance gb

October 10. 2009 08:47

Hello, maybe this is off topic but anyway, i've been browsing around your site and it looks really really neat. I'm building a new blog and struggling to make it look good, every time i touch something i mess it up. How hard was it to build your site? Could someone like me with no experience do it, and add family update pages without wrecking it every time?

London Escort Agencies us

October 13. 2009 00:54

he Blog Engine is simple, but one of the best platforms I have used and have seen in a while, I think more will start using more often IMO!

poker table top us

October 16. 2009 13:57

Searching for this for some time now - i guess luck is more advanced than search engines Smile

personal loans us

October 20. 2009 19:38

Hi nice POst

Regards

gary

cheap aion online kina us

October 25. 2009 09:20

Searching for this for some time now - i guess luck is more advanced than search engines Smile

cash loans us

October 26. 2009 10:12

thanks! very helpful post!! like the template btw ;)

payday loans us

October 27. 2009 14:49

Fun game
------------
24 hour locksmiths

locksmiths us

October 29. 2009 17:02

Nice blog and good content also. Thanks for sharing such a nice blog.

Bulk Sms us

October 30. 2009 08:13

This is really a very informative blog nice content also.It makes one think and look the other side of the story Thanks for sharing your views on the topic.

Christmas Presents for Women us

November 9. 2009 16:21

Nice resource. rss feed added

faxless payday loans us

November 16. 2009 02:35

This is niche your post has been very helpfull


Regards
Macklin


Hermes Bags us

November 16. 2009 02:36

Great Work


Regards
Rolonirst

debt relief companies us

November 16. 2009 02:41

Well this is very interesting indeed.Would love to read a little more of this. Great post. Thanks for the heads-up�This blog was very informative and knowledgeable



Regards
Natl

aluminum pool furniture us

Comments are closed