10 Minute Game Programming Tutorial: Silverlight - Shootorial #1 Conversion (C#)

Welcome to the first of many Silverlight game programming tutorials on dieajax.com. In a burst of originality and creativity, for this initial set of tutorials, I decided to convert Kongregate’s excellent beginning Flash game programming tutorial series to Silverlight. The first of these let’s the developer get their feet wet by walking them through drawing a space ship on the screen that they can move with the arrow keys. These tutorials focus on simplicity, clarity and “getting something to work”, rather than writing battle-hardened, production-ready code. However, as time goes on, the tutorials will certainly get more advanced and I, personally, have plans to create and give away the source code to as many fully-playable Silverlight games as I can make.

Alright, let’s begin! Read more

Related Posts:
10 Minute Silverlight Game Programming Tutorial - Shootorial Conversion #4 (C#)
10 Minute Silverlight Game Programming Tutorial - Shootorial Conversion #2 (C#)
10 Minute Silverlight Game Programming Tutorial - Shootorial Conversion #3 (C#)
10 Minute Silverlight Game Programming Tutorial - Shootorial Conversion #5 (C#)

Comments

10 Minute Tutorial - Silverlight: Mouse button and scroll wheel event handling using managed code (C#)

Originally, I wanted this post to stand as the definitive tutorial on mouse handling in Silverlight. However, after researching all the different methods people use to handle the right mouse button and scroll wheel in Silverlight, I quickly gave up that pipe dream. Instead, this tutorial serves as merely a starting point for handling mouse events in Silverlight. If you can’t find what you need here, chances are, someone else has hacked together the solution you nedd. I provide links to a few of these solutions on my Silverlight Portal page.

So, for this tutorial, we will create a rectangle that you can drag using the left mouse button, resize using the scroll wheel and change its color using the right mouse button. Hopefully, this examle will give you a basic overview on how to handle mouse events in Silverlight.

With all that said, let’s get started. Read more

Related Posts:
Silverlight Portal
Introduction to game programming in Silverlight
10 Minute Tutorial - Silverlight: Using JavaScript to Call Scriptable Managed Code (C#)
10 Minute Silverlight Game Programming Tutorial - Shootorial Conversion #2 (C#)

Comments

10 Minute Tutorial - JavaFX: Basic 2D Graphics and Animation

Update:

I have updated this tutorial for JavaFX 1.0

JavaFX, due to its declarative syntax, empowers developers with the ability to quickly build engaging user-interfaces that leverage eye-popping effects and animation to deliver a deeper, more visceral experience. But, you’ve got to learn to walk before you run :) so this tutorial will explore JavaFX’s basic animation concepts by creating a simple slide show containing various shapes. For added fun, each slide will have the ability to rotate. While eye-popping it is not, I think this tutorial will give you a good starting point to begin working on more complex animations. Read more

Related Posts:
And, he’s back!
Birds of a Feather: Silverlight, Flex and JavaFX
Introduction to game programming in Silverlight
10 Minute Tutorial - JavaFX: Hello World

Comments

10 Minute Tutorial - Silverlight: Building a Silverlight application with MSBuild (C#)

“If you build it they will come”

Don’t know about that, but if you use MSBuild, it’ll sure make everyone’s life a hell of alot easier. :)

As of .NET 2.0, Microsoft provides developers with a build engine, called MSBuild, as part of the runtime distribution. In this tutorial, I will walk through hand-coding a MSBuild build file for the sample code of my application framework Silverlight tutorial. Read more

Related Posts:
10 Minute Tutorial - Silverlight: Event handling using Managed Code (C#)
10 Minute Game Programming Tutorial: Silverlight - Shootorial #1 Conversion (C#)
10 Minute Tutorial - Silverlight: Using JavaScript to Call Scriptable Managed Code (C#)
Silverlight Portal

Comments

10 Minute Tutorial - JavaFX: Event handling using trigger and bind

Update:

I have updated this tutorial for JavaFX 1.0

Clearly, the creators of JavaFX Script want to make it a great MVC programming language. Nothing says this more than baking triggers and data binding into the language as first class concepts. According to the documentation, JavaFX triggers operate in the same manner as SQL triggers, allowing you to handle data modification events in an aspect-like fashion. And, the bind keyword allows unidirectional binding between a variable and a right side expression. These concepts help remove some of the tedium and typical bolier plate code in handling UI modification events. Read more

Related Posts:
10 Minute Tutorial - JavaFX: Basic 2D Graphics and Animation
And, he’s back!
Birds of a Feather: Silverlight, Flex and JavaFX
10 Minute Tutorial - JavaFX: Hello World

Comments

« go backkeep looking »