Microsoft XNA Game Studio 4.0 : learn programming now! /
Provides information on creating games for the Xbox 360, Windows Phone 7, and a PC, covering such topics as writing code, adding 3D effects, processing input from gamepads and keyboards, and manipulating colors and graphics.
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Redmond, Wash. :
Microsoft Press,
©2011.
|
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- Introduction
- Who This Book Is For
- System Requirements
- Code Samples
- Errata and Book Support
- We Want to Hear from You
- Stay in Touch
- Part I. :Getting Started
- 1. :Computers, C#, XNA, and You
- Introduction
- Learning to Program
- Becoming a Great Programmer
- How the Book Works
- C# and XNA
- Getting Started
- Installing the Development Environment and the XNA Framework
- Setting Up a PC to Run XNA Games
- Setting Up an Xbox 360 to Run XNA Games
- Setting up a Windows Phone to run XNA games
- Writing Your First Program
- Creating Your First Project.
- Running Your First ProgramStopping a Program
- Storing Games on the Xbox 360 or Windows Phone
- Running the Same XNA Game on Different Devices
- Conclusion
- Chapter Review Questions
- 2. :Programs, Data, and Pretty Colors
- Introduction
- Making a Game Program
- Statements in the Draw Method
- Working with Colors
- Storing Color Values
- Setting a Color Value
- Controlling Color
- Games and Classes
- Classes as Offices
- Game World Data
- Storing Data in Computer Memory
- Drawing by Using Our Color Intensity Variables
- Updating Our Colors
- Memory Overflow and Data Values
- Making a Proper Mood Light.
- Making Decisions in Your ProgramThe Completed Mood Light
- Finding Program Bugs
- Conclusion
- Chapter Review Questions
- 3. : Getting Player Input
- Introduction
- Reading a Gamepad
- Gamepads and Classes
- Finding a Gamepad
- Testing the Gamepad Status
- Using the Keyboard
- Stopping the Game with the Escape Key
- Using a Gamepad and a Keyboard at the Same Time
- Adding Vibration
- Controlling the Vibration of a Gamepad
- Testing Intensity Values
- Program Bugs
- Conclusion
- Chapter Review Questions
- Part II. :Images, Sound, and Text
- 4. :Displaying Images
- Introduction
- Resources and Content.
- Getting Some PicturesContent Management Using XNA
- Working with Content Using XNA Game Studio
- XNA Game Studio Solutions and Projects
- Adding Content to a Project
- Using Resources in a Game
- Loading XNA Textures
- Positioning Your Game Sprite on the Screen
- Sprite Drawing with SpriteBatch
- Filling the Screen
- Conclusion
- Chapter Review Questions
- 5. :Writing Text
- Introduction
- Text and Computers
- Text as a Resource
- Creating the XNA Clock Project
- Adding a Font Resource
- Loading a Font
- Drawing with a Font
- Changing the Font Properties
- Getting the Date and Time.
- Making a Prettier Clock with 3-D TextDrawing Multiple Text Strings
- Repeating Statements with a for Loop
- Other Loop Constructions
- Fun with for Loops
- Creating Fake 3-D
- Creating Shadows Using Transparent Colors
- Drawing Images with Transparency
- Conclusion
- Chapter Review Questions
- 6. :Creating a Multi-Player Game
- Introduction
- Creating the Button-Bash Game
- Level and Edge Detectors
- Constructing the Complete Game
- Adding Test Code
- Conclusion
- Chapter Review Questions
- 7. :Playing Sounds
- Adding Sound
- Creating the Drum Pad Project
- Capturing Sounds with Audacity.
- Storing Sounds in Your Project.