2D game programming tutorials in C#

前端 未结 5 1016
忘了有多久
忘了有多久 2021-01-31 12:08

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)?

5条回答
  •  臣服心动
    2021-01-31 12:26

    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!

提交回复
热议问题