You are previewing Microsoft® XNA® Framework Edition: Programming Windows® Phone 7.
O'Reilly logo
Microsoft® XNA® Framework Edition: Programming Windows® Phone 7

Book Description

Get started building applications for Windows Phone 7—expertly guided by award-winning author Charles Petzold. You’ll focus on the core concepts and techniques for creating apps with Microsoft XNA. Charles brings a unique combination of pragmatism and authority to his instruction—along with an eminently readable style and a wealth of hands-on examples.

Table of Contents

  1. Microsoft XNA Framework Edition: Programming Windows Phone 7
    1. A Note Regarding Supplemental Files
    2. Introduction
      1. Organization
      2. My Assumptions About You
      3. System Requirements
      4. Using the Phone Emulator
      5. Code Samples
      6. Last-Minute Items
      7. The Essential People
      8. Errata & Book Support
      9. We Want to Hear from You
      10. Stay in Touch
    3. I. The Basics
      1. 1. Hello, Windows Phone 7
        1. Targeting Windows Phone 7
        2. The Hardware Chassis
        3. Sensors and Services
        4. File | New | Project
        5. A First Silverlight Phone Program
        6. The Standard Silverlight Files
        7. Color Themes
        8. Points and Pixels
        9. The XAP is a ZIP
        10. An XNA Program for the Phone
      2. 2. Getting Oriented
        1. Silverlight and Dynamic Layout
        2. Orientation Events
        3. XNA Orientation
        4. Simple Clocks (Very Simple Clocks)
      3. 3. An Introduction to Touch
        1. Low-Level Touch Handling in XNA
        2. The XNA Gesture Interface
        3. Low-Level Touch Events in Silverlight
        4. The Manipulation Events
        5. Routed Events
        6. Some Odd Behavior?
      4. 4. Bitmaps, Also Known as Textures
        1. XNA Texture Drawing
        2. The Silverlight Image Element
        3. Images Via the Web
        4. Image and ImageSource
        5. Loading Local Bitmaps from Code
        6. Capturing from the Camera
        7. The Phone’s Photo Library
      5. 5. Sensors and Services
        1. Accelerometer
        2. A Simple Bubble Level
        3. Geographic Location
        4. Using a Map Service
      6. 6. Issues in Application Architecture
        1. Basic Navigation
        2. Passing Data to Pages
        3. Sharing Data Among Pages
        4. Retaining Data across Instances
        5. The Multitasking Ideal
        6. Task Switching on the Phone
        7. Page State
        8. Isolated Storage
        9. Xna Tombstoning and Settings
        10. Testing and Experimentation
    4. II. XNA
      1. 7. Principles of Movement
        1. The Naïve Approach
        2. A Brief Review of Vectors
        3. Moving Sprites with Vectors
        4. Working with Parametric Equations
        5. Fiddling with the Transfer Function
        6. Scaling the Text
        7. Two Text Rotation Programs
      2. 8. Textures and Sprites
        1. The Draw Variants
        2. Another Hello Program?
        3. Driving Around the Block
        4. Movement Along a Polyline
        5. The Elliptical Course
        6. A Generalized Curve Solution
      3. 9. Dynamic Textures
        1. The Render Target
        2. Preserving Render Target Contents
        3. Drawing Lines
        4. Manipulating the Pixel Bits
        5. The Geometry of Line Drawing
        6. Modifying Existing Images
      4. 10. From Gestures to Transforms
        1. Gestures and Properties
        2. Scale and Rotate
        3. Matrix Transforms
        4. The Pinch Gesture
        5. Flick and Inertia
        6. The Mandelbrot Set
        7. Pan and Zoom
        8. Game Components
        9. Affine and Non-Affine Transforms
      5. 11. Touch and Play
        1. More Game Components
        2. The PhingerPaint Canvas
        3. A Little Tour Through SpinPaint
        4. The SpinPaint Code
        5. The Actual Drawing
        6. PhreeCell and a Deck of Cards
        7. The Playing Field
        8. Play and Replay
      6. 12. Tilt and Play
        1. 3D Vectors
        2. A Better Bubble Visualization
        3. The Graphical Rendition
        4. Follow the Rolling Ball
        5. Navigating a Maze
    5. Index
    6. About the Author