Starting Photon in 5 Minutes 五分钟内开始
Photon is extremely easy to install and start. The SDK includes ready-to-use binaries which can be up and running within 5 minutes.
Photon是非常容易安装和启动的,SDK中包含了可用的二进制文件,5分钟内即可启动运行
Download 下载
The Photon Server SDKs are available on our website: www.exitgames.com/Download/Photon
Choose Fitting Binaries 选择装配的二进制文件
Unzip the files anywhere on your machine. Locate the “deploy” folder and choose the fitting binaries for your system:
解压在你机器的任何位置,找到deploy文件夹,选择适合你的二进制文件
- bin_Win32: 32 bit Windows Vista and up
- bin_Win32_xp: 32 bit Windows XP or 2003
- bin_Win64: 64 bit Windows Vista and up
- bin_Win64_xp: 64 bit Windows XP or 2003
The deploy folder of the SDK contains everything you need to run Photon. Other content of the SDK includes documentation(/doc), libraries(/lib) and source(/src-server).
deploy文件夹中包含运行Photon的所有东西,另外还有doc、lib、src-server
Photon Control
Run Photon using the PhotonControl.exe. This will create a tray bar-icon and -menu to manage Photon.
使用PhotonControl.exe运行Photon,将创建一个托盘图标和菜单管理Photon
Click the white/blue icon and select “Photon” -> “Start as Application” from the menu. Now you have started Photon!
点击该托盘并选择“Photon”->“Start as Application”,现在你启动了Photon
It might take several seconds until Photon is ready to use, depending on the applications it is running.
只需几秒钟Photon就可以使用了
When you don’t have a License File yet it will run with a 20 CCU limitation.
当你没有许可文件时,也可以运行20个CCU
Starting the Test Client 开始测试客户端
The server SDK includes a test client to simulate multiple clients and to generate some load. You can start it from the Photon Control tray bar-menu: “Photon” -> “Run test client”.
服务器SDK包含一个测试客户端,用于模拟多个客户端和产生一些负载,你可以选择“Photon” -> “Run test client”开始测试
The test client is a simple console application which will simulate client sessions and games with a few players each.
这客户端是一个简单的控制台程序用于模拟多个客户端的会话和游戏
License 许可证
The License needs to be placed in the same directory from where you start the Photon Control. Make sure that there is only one “.license” file in that directory.
许可证需要放置在你启动Photon Control的目录中,确保有一个 “.license”文件在目录中