<!-- Article image -->
<!-- Add the rest of your HTML here -->
There aren't really too many game programming examples with the C# language...not yet. Comming from a game programming background, I decided to whip one up with Visual Studios .NET. The final result after 2 hours of coding: Star Fighter 1.0.
Instead of digging deep into the DirectX interface, I decided to just use simple Windows Forms. The process is quite simple. The entire game loop is handle by a simple form timer event which processes the ship movement, aliens movement, bombs, and bullets. Keyboard input is done by the keydown handler event. The entire code is self explanatory and fairly documented. Graphics were ripped from Blitz3d's demo game "Insectoids".
Just a warning to everyone, Windows Forms is not the best method for intense action graphics, and if you experience some poor performance and slowdowns it's normal. I ran this code using a P4 3.02 ghz and it went smoothly for me but others reported extreme slowness. Also, there's an annoying bug when the ship gets hit by the alien's bomb which causes the game to end - that which I could not figure out after a half an hour of debugging.
Questions, Comments, Complaints
For more projects, game demos, C# programming visit my website: http://www.3d-design.0catch.com/.