XN4SL is a library dedicated to port existing XNA 2D games to the Sliverlight platform. XN4SL emulates XNA Framework classes for use with Silverlight applications. On current project stage XN4SL supports 2D games based on the Platformer XNA Starter Kit from Microsoft XNA Game Studio 3.0. Most of the game functionality was achieved and only minor changes in the code are required.

Any feedback or help will be great. If you create a game powered by XN4SL that you would like to share, you can submit it to SilverlightClub

To play game powered by XN4SL click the link here.

platformer.jpg

How to create your own Silverlight Platformer game powered by XN4SL?

Required tools: Microsoft Visual Studio 2008 SP1 with Silverlight Tools and XNA Game Studio 3.0.

folders.png
from
<FontName>Peric</FontName>

to:
<FontName>Content/Fonts/Peric.ttf#Pericles</FontName>
from
    if (File.Exists(levelPath))

to
    if (this.Content.FileExist(levelPath))
from:
    this.RootVisual = new Page();

to:
    var game = new SilverlightPlatformer.PlatformerGame();
    this.RootVisual = game;
    game.Run();

Adjust some constant values like TargetFrameRate, MoveAcceleration, MaxMoveSpeed etc.

To read more about XNA game development visit Microsoft XNA site.