XNa advanced programming: Xbox 360 and windows 5-1

Source: Internet
Author: User
Tags windows 5
Chapter 5
Compile your own xNa Image Engine



5.1Overview of this Chapter


In the first part of this book, you learned XNa framework , Use Spritebatch Class Rendering 2d Images and a few interesting games. Now it's time to explore more exciting 3D The world of image programming is now. Production 3D Compared with assembling a game 2d The game requires more work. 3D With the rapid development of image technology, many games are impossible. Some games can also be 2d For example, instant strategy games, and most successful instant strategy games (such as Starcraft, Warcraft, command and conquer, and the age of the Empire) confirm 2d The game is still very popular. But if you have a look at the shooting games, no 3D Image Support is impossible, and the better the image quality, the more realistic the game is. Other game types, such Such (Beat-'em-ups) , Adventure, sports, etc., also benefit from the progress of image technology in recent years. Of course, in 10 Year or 20 Years ago, Pong And early Tennis Games are also very popular, but they cannot be compared with today's sports games.


XNaIs a great quick creation2dThe game framework, even if you are an individual, is completely possible to quickly create a game idea, make a few pictures by yourself or find someone to help you with the picture, then you can write the entire game in a few weeks or months.


However, most game developers are more keen on making 3D Game. In addition, almost everyone often makes a mistake, that is, taking their own game idea and those large Game Studios for years to complete. Aaa The title of the most successful game works compared. If you are an individual, you cannot EA Even if you think their game is not good enough because they have more 100 Experienced Game Studios are used to develop games.


But it doesn't matter. Most of us enter the game development field only because we like it and sometimes because we believe we can do better than others. On the one hand, although you can make a mature Aaa Competing games 3D The game is very difficult, but you must start somewhere and step into as we continue to explain 3D The programming world will become easier and easier. There are many large websites, learning guides, development frameworks, and books that can quickly help programmers who have little development experience to create 3D The door to game images.


With so many learning resources, I will not focus on explaining the basics of mathematics, how to use matrices, or other 3D Basic image knowledge. For many programmers who already know this knowledge, it will be boring to introduce these things, and it will take more space. As I told you in chapter 1 C # There is no programming experience, so you should first read the introduction C # . If you really want to know 3D For more information about images, see this book. If you have used Direct3d Or OpenGL Experience, You should have understood these basics (hopefully most readers will do this), then you can start to learn the content of this chapter.


This chapter still uses a typical learning path, that is, writing requirements first, creating unit tests for these requirements, and then going deep into the details of each new class. As stated in the title of this chapter, your goal is to create your own image engine and prepare the basic framework for the remaining projects and games in this book. TheTetrisThe game has used many useful helper classes. Some new image classes should be reconstructed in this chapter, and several new classes will be added. Refactoring means that some classes need to be rewritten to meet new requirements.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.