Thursday, 19 June 2008

Silverlight Viewport

As part of the Resolve Evolve Solve entry for the Imagine Cup I have been looking into some game programming with Silverlight 2 and one thing that struck me was that there wasnt any support for viewports within silverlight.

A viewport is basically a small selection of an overall image that will be displayed to the user, imagine looking out of a porthole in a ship.

Our proof of concept game EnviroHouse uses a static layout where the whole game surface is displayed to the user from the begining of the game, however in the new game under development we are looking to have the user able to move further than the original size that is display, and so would need to use viewports and viewboxes. So, I decie to set out on an epic quest on the interwebs and find this rather nifty viewport class that has been pre-made. Hopefully this will solve all my worldly problems and get me home in time for tea. :)

The Silverlight viewport can be found here.

No comments: