|
|
1 day ago | |
|---|---|---|
| .. | ||
| readme.md | 1 day ago | |
This topic contains the following sections.
The Racing Game Starter Kit is a complete XNA Game Studio game. The project comes ready to compile and run. It's easy to customize with a little bit of C# programming. You are free to use the source code as the basis for your own XNA Game Studio game projects, and to share your work with others.
Racing Game is a 3D auto racing game that features advanced graphics, audio, and input processing. Race around the track and try to beat the ghost car to achieve the best time.
Note: This documentation assumes that you have a basic knowledge of programming concepts and the Visual C# environment. You can learn more about these topics in the product documentation by clicking one of the Help menu items, or by positioning the mouse cursor on language keywords or user interface elements such as windows or dialog boxes, and then pressing F1.
This starter kit provides a complete XNA Game Studio game, including source code and game content such as models, textures, and sounds. This starter kit documentation describes the general layout and controls for Racing Game. The Racing Game Starter Kit demonstrates the following:
Follow these procedures to get started.
The project will build and then run within the debugger.
The project will build without running.
When Racing Game starts, it will begin in Demo mode. To start the game, press the START button on your Xbox 360 Controller. This will bring you to the Main Menu.
You can use a keyboard, Xbox 360 Controller, or a mouse (Windows-only) to play Racing Game. The controls are mapped as follows:
| Action | Controller | Keyboard | Mouse |
|---|---|---|---|
| Start the game. | START | SPACEBAR | Left mouse button |
| Exit the game. | BACK | ESC | |
| Turn the car. | Left stick | LEFT ARROW, RIGHT ARROW, or A, D | Move mouse left or right |
| Accelerate the car. | Right trigger, or A | UP ARROW, or W | Left mouse button |
| Brake the car. | Left trigger, or B | DOWN ARROW, or S | Right mouse button |
| Zoom the camera in. | X | PAGE UP | Mouse wheel |
| Zoom the camera out. | Y | PAGE DOWN | Mouse wheel |
| Show or hide the FPS counter. | Left bumper + Y | F1 | |
| Toggle full-screen mode (Windows-only). | ALT+ENTER |
This section identifies some of the known issues you may encounter when playing Racing Game.
The screen may flicker on some Windows-based computers when running a debug build of the game. To address this, find the following line of code in the BaseGame constructor (Graphics\BaseGame.cs, approximately line 1026):
graphicsManager.SynchronizeWithVerticalRetrace = false;
Change the value of the property to true, like this:
graphicsManager.SynchronizeWithVerticalRetrace = true;
© 2008 Microsoft Corporation. All rights reserved.
Send feedback to [email protected].