Bluetooth Game

Windows Mobile SupportedWindows Embedded CE Not Supported

8/28/2008

This code sample is named SpaceWar2D.

Feature Area

.NET and the WindowsMobile Class Library

Bluetooth

Relevant APIs

System.Drawing

Microsoft.WindowsMobile.SharedSource.Bluetooth

To run the code sample

  1. Navigate to the solution file (*.sln), and double-click it. By default, the solution file is copied to the following folder:

    C:\Program Files\Windows Mobile 6 SDK\Samples\Common\CS\Bluetooth\SpaceWar2D

    Microsoft Visual Studio 2005 launches and loads the solution.

  2. Build the solution (Ctrl+Shift+B).

  3. Deploy the solution (F5).

  4. Install the generated CAB file onto your two mobile devices.

  5. Once you have the application up and running on one of the mobile devices, press the Connect SoftKey, and choose your opponent's mobile device from the list.

Development Environments

SDK: Windows Mobile 6 Professional SDK and Windows Mobile 6 Standard SDK

.NET Compact Framework: Version 2.0 or later.

Development Environment: Visual Studio 2005.

ActiveSync: Version 4.5.

Demonstrates

SpaceWar2D demonstrates how to write a game that uses Bluetooth technology for communications.

Comments

It is assumed that you have two Windows Mobile powered devices that have established a Bluetooth partnership.

To be able to pick your opponent’s mobile device, you must have already established a Bluetooth partnership with it.

You can visit the Microsoft Download Center and download copies of Windows Mobile 6 Professional SDK and the Windows Mobile 6 Standard SDK .

See Also

Concepts

Code Samples for Windows Mobile