Alex Rivera | Logout

2D game programming tutorials in C#

Asked 2010-02-24T22:34:50.173
13

I want to learn about programming 2D games in C#. What are the best tutorials that are beginner oriented, written for C#, and preferably use GDI+ (or something equally simple)? I am relying on the experience this community has to direct me towards the best.

Edit
Report

2 Answers

6

I watched these DNR TV episodes recently and thought they were very well done and informative.

http://www.dnrtv.com/default.aspx?showNum=165
http://www.dnrtv.com/default.aspx?showNum=166

These focus on XNA, which is definitely where I'd start if I was planning on creating a game. Their tutorial take you through:

creating a 2D game with:

  • collision detection
  • texture creation and usage
  • geometry creation
  • physics simulation (They use an open-source physics engine and show you how to use it)

If you haven't heard of XNA:

The framework runs on a version of the Common Language Runtime that is optimized for gaming to provide a managed execution environment. The runtime is available for Windows XP, Windows Vista, Windows 7, and Xbox 360 [also can be played on Zune HDs].

XNA attempts to free game developers from writing "repetitive boilerplate code" and to bring different aspects of game production into a single system. wikipedia

Even if you don't want to use XNA, I think these videos will help learn about the concepts and techniques common to most (if not all) game dev. Oh, and it's all C# :)

Good luck!

answered 2010-02-28T18:28:41.843
0

I would take a look at SDL.Net it's a pretty good games library for .NET (well a binding to a good library for the pedants ;))

It has a lot of resources on its pages right from beginner stuff to more advanced things like isometric engines etc.

It doesn't seem to have been very active for a while however what is there already is more than enough for even complex 2D games.

answered 2010-03-05T15:51:33.247

Your Answer