Digital Transfusion

Putting the internet in your veins!

Zero Gravity: Conquering new frontiers

16 comments

It seems like only yesterday that Tim Heuer was  showing off Zero Gravity and the lovable antics of Lt. Bennett. It is hard to believe that was over 3 years ago. The Silverlight platform has grown up by leaps and bounds in that amount of ltbennett-ship time, and with the looming release of Windows Phone 7, it seems only fitting that I get the opportunity to go back an take a look at the first game built in Silverlight with the intent of bringing it to the modern age. That’s right, Zero Gravity is now available on WP7 as well.

What amazed me the most out of this whole experience is that the codebase written back in WPF/e was able to be recompiled with very little modification into the latest version of silverlight. Sure, there were a few namespace changes, but nothing in the code needed to structurally change. Even the old way of using a pre-loader (back before there was such a thing as a “splashScreenSource”) runs without a hitch. In my next post, I will go into the changes that were necessary to get the game to work in WP7 but until then…

Just give me the source!

So without further adieu, I give you the source code for the original zero gravity

Desktop – Silverlight 4: ZeroGravity.Desktop.zip
WP7 – Silverlight 3: ZeroGravity.Wp7.zip

Please note that the Wp7 version you will need the Toolkit which can be found on codeplex.

If you just want to play the original game, you can check it out right over here!

Tags: , ,

16 Responses to “Zero Gravity: Conquering new frontiers”

  1. [...] a previous post I released the source code to Zero Gravity. In this post I am going to dive in and explain the changes that had to be made to make the game [...]

  2. [...] Zero Gravity Source Code released (desktop and Windows Phone 7 source) [...]

  3. [...] can read more on Ryan’s game here and if you want, you can just play the game right now online by going [...]

  4. [...] can read more on Ryan’s game here and if you want, you can just play the game right now online by going [...]

  5. [...] 7. And here’s a game that’s available to try now on your PC and was ported to work for WP7 and the source code is already available. How easy was the port? “Nothing in the code needed to structurally change.” Oh what is the [...]

  6. [...] Zero Gravity Source Code released (desktop and Windows Phone 7 source) [...]

  7. [...] Ryan Написал Малых Сергей Читали 0 раз Метки Zero Gravity, [...]

  8. Vj says:

    Errors while trying to build and run your latestest version

    “System.Reflection.TargetInvocationException was unhandled by user code
    Message=An exception occurred during the operation, making the result invalid. Check InnerException for exception details.
    StackTrace:
    at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
    at System.Net.OpenReadCompletedEventArgs.get_Result()
    at Terralever.Silverlight.ZeroGravityLauncher.AssemblyLoader.ApplicationDownloaded(Object sender, OpenReadCompletedEventArgs e)
    at System.Net.WebClient.OnOpenReadCompleted(OpenReadCompletedEventArgs e)
    at System.Net.WebClient.OpenReadOperationCompleted(Object arg)
    InnerException: System.Net.WebException
    Message=An exception occurred during a WebClient request.
    InnerException: System.NotSupportedException
    Message=The URI prefix is not recognized.
    StackTrace:
    at System.Net.WebRequest.Create(Uri requestUri)
    at System.Net.WebClient.GetWebRequest(Uri address)
    at System.Net.WebClient.OpenReadAsync(Uri address, Object userToken)
    InnerException:

  9. NK says:

    Got the same error as mentioned in Vj comments:

    Errors while trying to build and run your latestest version

    “System.Reflection.TargetInvocationException was unhandled by user code
    Message=An exception occurred during the operation, making the result invalid. Check InnerException for exception details.
    StackTrace:
    at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
    at System.Net.OpenReadCompletedEventArgs.get_Result()
    at Terralever.Silverlight.ZeroGravityLauncher.AssemblyLoader.ApplicationDownloaded(Object sender, OpenReadCompletedEventArgs e)
    at System.Net.WebClient.OnOpenReadCompleted(OpenReadCompletedEventArgs e)
    at System.Net.WebClient.OpenReadOperationCompleted(Object arg)
    InnerException: System.Net.WebException
    Message=An exception occurred during a WebClient request.
    InnerException: System.NotSupportedException
    Message=The URI prefix is not recognized.
    StackTrace:
    at System.Net.WebRequest.Create(Uri requestUri)
    at System.Net.WebClient.GetWebRequest(Uri address)
    at System.Net.WebClient.OpenReadAsync(Uri address, Object userToken)
    InnerException:

  10. [...] Zero Gravity Source Code released (desktop and Windows Phone 7 source) [...]

  11. Ryan Plemons says:

    @Vj and @NK

    Sorry for the confusion, but it seems that when I cleared the .suo file from the package (just before deployment), it defaulted the startup project to the launcher set the following project/file to be defaults and everythying should be good again.

    Default Project:
    Terralever.Silverlight.ZeroGravity.Web

    (Right-Click -> Set as StartUp project)

    Default Page:
    Terralever.Silverlight.ZeroGravityLauncherTestPage.html

    (Right-Click -> Set as Start Page)

  12. [...] Ryan as created and shared the code of a brilliant XNA game for Windows Phone 7. [...]

  13. [...] was EXTREMELY noticeable when I converted Zero Gravity to WP7. My jaw literally dropped to the floor the first time I ran the game. The speed was far from [...]

Leave a Reply