XNA C# 2D Platformer Game

前端 未结 4 1039
悲&欢浪女
悲&欢浪女 2021-02-06 09:47

I\'m trying to make (figure out how to..) a 2d platformer in XNA.

I know how to create a tile grid and how to perform collision detection. I perform collision detection

相关标签:
4条回答
  • 2021-02-06 10:09

    If you're going for a retro style then it's certainly fine to use tiles! However, if you want something more "modern", then you can go with a more conventional physics engine. Farseer Physics is a great engine, and several people have used it to make platformers. It's based on Box2D and similar engines, but offers a simpler API and several unique features (like texture to geometry) and i myself can testify to it's niceness having played around with it a bit.

    0 讨论(0)
  • 2021-02-06 10:18

    Have you checked the examples in the collision serie on the XNA creators club, in particular the pixel-collision sample?

    0 讨论(0)
  • 2021-02-06 10:21

    Assuming you don't mind using a third party tool to do the majority of the work for you, you may be better off using something like Box2D for C#.

    http://www.box2d.org/ http://code.google.com/p/box2dx/

    This library will give you collision detection and physics capabilities.

    0 讨论(0)
  • 2021-02-06 10:22

    You probably need a bit more than collision detection for a game like Braid. I would assume that you also need a physics engine. I would recommend that you take a look at Farseer Physics engine, which is 2D engine that works very well with XNA. It supports a number of different techniques for collision detection.

    0 讨论(0)
提交回复
热议问题