XNA 3.0 Game Programming Recipes: A Problem-Solution Approach potx

663 502 0
XNA 3.0 Game Programming Recipes: A Problem-Solution Approach potx

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... the XNA 3.0 Framework Files The first solution is downloading and installing the two packages on the PC, together with your game s binary files You can solve this by downloading and installing the XNA Frame The package is very small and contains all the basic XNA 3.0 Framework files Installing the NET 3.5 Framework Files XNA is NET 3.5 Copying Binary Files After you’ve compiled and tested your game, ... or quaternion camera The only thing that matters is that the camera can 19 20 CHAPTER 1 GE TTING S TA R TED W ITH X NA 3 0 produce valid and suffices for your main matrices and maybe some other directional vectors So, it class to have a camera class that subscribes to Making Your GameComponent Subscribe to an Interface example, you will have two camera components Because they don’t need to draw anything... executable directory, which can be any combination between and shouldn’t receive any error messages when you double-click the file to start your game CHAPTER 1 GETTING STARTED WITH XNA 3.0 Creating a Single ClickOnce Installation Package Containing All Prerequisites New to XNA 3.0, ClickOnce installation lets you create an install file that installs both prerequisite packages To create the install file,... would have a major impact on the possibilities for game developers XNA was designed from the ground up with ease of use in mind, while not sacrificing performance or capabilities to achieve this goal As a bonus, any game you create in XNA for the PC also runs on the Xbox 360 console! With the coming of XNA 3.0, you can even run your 2D game on the Zune handheld device In the span of two years, a large... main class, which will call the corresponding methods of all classes currently registered in your How It Works make it a class Creating a New (Drawable)GameComponent Add a new file that is presented to you, you’ll want to add the XNA lines so you have access to all XNA functionality in your new class, which can be done very easily by copying the block of your main class into the new class Next, make... code is available for download at The , , class were listed earlier in the text , and methods of the and main 1-8 Allow Your GameComponents to Communicate with Each Other by Implementing GameServices The Problem As explained reusable - ing, billboard engine, and more One of the main benefits of using classes is that you can easily switch between game functionalities, for example, camera modes Changing... called at the same frequency as the screen refresh rate, method LoadContent Method disk To speed things up and allow a lot of flexibility, XNA manages this art through the content pipeline All art loading should be done in the method This method is called only once The same approach can be used to load any kind of art UnloadContent Method method the game exits CHAPTER 1 GETTING STARTED WITH XNA 3.0 Adding... running on a PC and on the Xbox 360 console The second part of this chapter contains some more advanced topics for those interested in the inner workings of the XNA Framework Specifically, the recipes in this chapter cover the following: classes and games using XNA s storage capabilities 1-1 Install XNA Game Studio 3.0 The Problem You want to start coding your own games The Solution Before you can start coding... main methods will automatically be called The easiest way to do this is to create a new instance of your and add it immediately to the list An ideal place to do this is in the constructor of your main class: This will cause the and methods to be called at startup and the and methods of the new class to be called each time the and methods of your main class have finished case of the billboarding component,... can feel safe running your game s executable The two packages that need to be installed first: The good news is that XNA is now compatible with Visual Studio’s ClickOnce technology, allowing you to create a single file that first checks whether these packages are there and to install the packages before installing your game if they’re absent Nevertheless, if you want - How It Works Installing the XNA .

Ngày đăng: 05/03/2014, 22:21

Từ khóa liên quan

Mục lục

  • front-matter

  • Getting Started with XNA 3.0

  • Setting Up Different Camera Modes in Your 3D World

  • Working with 2D Images/ Textures in XNA 3.0

  • Working with Models

  • Getting the Most Out of Vertices

  • Adding Light to Your Scene in XNA 3.0

  • Adding Sounds to Your XNA 3.0 Project

  • Networking in XNA 3.0

  • Index

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan