在两个设备之间通过蓝牙技术玩游戏 [英] Playing a game between two dvices throgh bluetooth tecnoalgy

查看:72
本文介绍了在两个设备之间通过蓝牙技术玩游戏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

我想知道是否有人知道现有的代码项目或以下代码:
我在两个移动设备上有一个游戏,我想用C#编写一个项目,该项目将连接两个玩家并使用蓝牙技术在他们之间进行游戏.
有人知道我需要什么名称空间吗?
可以编写这样的程序吗?

谢谢!!

Plony Almony

Hi!

I am wondering if anyone knows of an existing code project or code for:
I have a game on two mobile devices and i want to write a project in C# which will connect two players and play between them using bluetooth tecnalogy.
Does anyone know what namespace do i need?
Is it possible to write such a program?

Thank you!!

Plony Almony

推荐答案

蓝牙使用串行通信,并且可以使用SerialPort类.

您将需要:

一种.使用PC作为服务器来处理移动设备之间的通信,并使用您自己的API设计以任何合适的语言(java看起来很常见,并且是用于黑莓的语言)对它们进行编程

b.仅使用WinMobile设备,然后才可以在C#中直接对其进行编程

Google的"Bluetooth C#",您会发现一些帮助您前进的指针.
Bluetooth uses serial communication and the SerialPort class can be used.

You will need to either:

a. Use a PC as a server to handle the communication between the mobile devices and program them in whatever language is apropriate (java seems very common and is the language used for blackberrys) using you own API design

b. Use WinMobile devices only then you can program them directly in C#

Google for ''Bluetooth C#'' and you will find a few pointers to get you underway.


这篇关于在两个设备之间通过蓝牙技术玩游戏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆