XNA 2D Camera Engine That Follows Sprite

前端 未结 4 524
猫巷女王i
猫巷女王i 2020-12-12 11:56

What is the best way to create a parallax effect in an XNA game? I would like the camera to follow my sprite as it moves across the world, that way I can build in effects li

4条回答
  •  猫巷女王i
    2020-12-12 12:42

    Here are some tutorials on implementing a 2D camera in XNA:

    1. http://www.paradeofrain.com/?page_id=32
    2. http://gamecamp.no/blogs/tutorials/archive/2008/01/29/creating-a-simple-xna-camera-class.aspx

提交回复
热议问题