views:

1112

answers:

6

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.

+9  A: 

Books

Beginning .NET Game Programming

Beginning C# Game Programming

Links

Coding 4 Fun is a great .NET resource that has quite a few user-created games. They also have a book and a 2-D game primer

Tutorial Listing at C# corner

C# Game Tutorial for Beginners (video)

Link to more game programming e-books

Advanced Topics

The Farseer Physics Engine on Codeplex would be a good next step once you get comfortable with programming games. You could even end up contributing to the project if you like it enough. I'm sure they'd appreciate the help.

Robert Greiner
Mostly good tutorials, but the cplus.about one doesn't work because no links to it are provided. Have you actually read any of these?
Bloodyaugust
that link has a link to free programming e-books, some of which cover game programming.
Robert Greiner
A: 

I would start with learn a little object oriented architecture - this is a key to your ultimate success.

Then learn how to design the model - the entities in the game (characters and etc) in code and the view - the 2D representation of them, and how to connect the two (data and command binding).

I would try using WPF and not GDI+.

The code project has a lot of good articles for beginners.

Danny Varod
+5  A: 

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!

Bobby
A: 

This link seems reasonable ( if a little verbose ) - it's takes you through how to code a simple tetris-like game in c# using GDI+. I has code listings and links to download the source code.

zebrabox
A: 

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.

Chris Meek
A: 

I Recently started a new blog, that will take you through a step by step guide on how to do game programming using your favorite .net language: http://www.polemus.net, it includes screen clips as we go along.

Dusty Roberts