Lecture08-games-in-XNA

Lecture08-games-in-XNA - MathHelper.ToRadians(45.0f),

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
Writing Games in XNA CS 455
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Objectives Start writing a game in XNA Setting up a view Effects in XNA Using a controller Know where to go to learn more See some payoff for projects 1, 2 and 2.5
Background image of page 2
Reinventing the wheel There are many places to learn XNA on the web. http://bit.ly/xnafor455
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Very slow and gradual. This should feel very comfortable.
Background image of page 4
Bit more technical, which is good. But does not have a good big picture view.
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Looks thorough and is at the top of most of my XNA google searches, but I haven’t used it much.
Background image of page 6
XNA: setting up the view Set up the camera… cameraViewMatrix = Matrix.CreateLookAt( cameraPosition, cameraLookat, Vector3.Up); cameraProjectionMatrix = Matrix.CreatePerspectiveFieldOfView(
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 8
Background image of page 9
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: MathHelper.ToRadians(45.0f), graphics.GraphicsDevice.Viewport.AspectRatio, XNA: setting up the view Use the camera (In your draw method) XNA Transformation Order scale * rotate * translate scale * translate * rotate effect.World = Matrix.CreateScale(gameobject.scale) * Matrix.CreateFromYawPitchRoll( gameobject.rotation.X, gameobject.rotation.Y, gameobject.rotation.Z)* Matrix.CreateTranslation(gameobject.position) effect.World = Matrix.CreateScale(gameobject.scale) * Matrix.CreateTranslation(gameobject.position) * Matrix.CreateFromYawPitchRoll( gameobject.rotation.X, gameobject.rotation.Y, gameobject.rotation.Z);...
View Full Document

Page1 / 9

Lecture08-games-in-XNA - MathHelper.ToRadians(45.0f),

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online