Astrolight 1.2 Update

My Astrolight red flashlight application has been updated to keep the screen from locking. I had heard from users that sometimes they wanted to set the phone down while playing with cameras and eyepieces – but when they went back to the phone they’d have to unlock again. Which could be pretty bright depending on your wallpaper! Get it from the Windows Phone Marketplace.

Astrolight 1.1 Update for Windows Phone Mango

Build your own Astrolight app

Astrolight is a simple red flashlight application which you can get in the Windows Phone Marketplace, it’s so simple that I’m going to tell you how you can create one too. With two lines of code.

Assuming you’re all up and running with the free Visual Studio Express for Windows Phone, we just need to start a new Windows Phone Game project…

Then we double click the Game1.cs file and find the Draw method. Here we need to change replace one line with two:

/// <summary>
/// This is called when the game should draw itself.
/// </summary>
/// <param name="gameTime">Provides a snapshot of timing values.</param>
protected override void Draw(GameTime gameTime)
{
    graphics.IsFullScreen = true;
    graphics.GraphicsDevice.Clear(Color.Red);

    base.Draw(gameTime);
}

Press play and watch your brand new app on the Windows Phone Emulator!