Saturday, February 26, 2011

Kung Fu FIGHT! Windows Playtest Build

Block Village

You can download the Kung Fu FIGHT! playtest build here:

Kung Fu FIGHT! Windows Playtest

I think it should run pretty much anywhere. You just need .NET 2.0 (which comes with both Vista and Windows 7) and OpenGL drivers (which most systems should have). If for some reason you don't have .NET 2.0, you can get it here.

Any feedback is most welcome - give it a try, and let me know what you think.

Wednesday, February 23, 2011

Disabling Aero From Within a .NET Application Using DwmEnableComposition

First off, why would you want to disable the Aero theme? Well, it turns out that it messes with vsync and can screw up the framerate of some applications. DirectX apps seem to be ok, but, in my experience at least, it really messes with OpenGL.

To disable it from within a .NET application you need to DllImport dwmapi.dll. To do this you need to reference System.Runtime.InteropServices:

using System.Runtime.InteropServices;

Within one of your classes - usually where you have the application entry point - you need the following:

[DllImport("dwmapi.dll", PreserveSig = true)]
public static extern int DwmEnableComposition(bool enable);

To invoke the method, simply do this:


Friday, February 4, 2011

Kung Fu FIGHT! Gameplay Video

Here is some footage of the current gameplay in Kung Fu FIGHT! As usual, the youtube video is choppy - I think the fact that they downsample to 30fps is the main problem.

I'm hoping to get a build into playtest on XBLIG this weekend.