随笔分类 - Photon
摘要:Receiver Groups 接收组Receiver groups are an alternative way to define who receives an event. It’s an option available with Lite’s operationRaiseEvent. 接收组是一个替代的方法来定义接收到的事件,他是一个操作,可能是Lite的RaiseEvent操作Usually, Lite sends your events to everyone else in the same room. With the receiver group parameter f.
阅读全文
摘要:Secure Websockets Setup 安全Websockets设置To allow your clients connecting your Photon Server using secure websockets with ‘wss://…’ please proceed as follows. 允许你的客户端连接你的Photon服务器使用安全websockets。Obtain a SSL certificate. 获取SSL证书For development purposes, you can generate a self-signed SSL certificate. 对.
阅读全文
摘要:Performance Tips 性能技巧Performance is a vital part for providing a fluid and seamless integration of multiplayer components into your application. So we assembled a list of tips you should keep in mind when developing with Photon. 性能是多层组件与你的应用继承的至关重要的部分,以下是我们的建议。Call Service Regularly 定期调用服务The clien.
阅读全文
摘要:Calling Operations 调用操作As described in the “Basic Concepts”, operations are Remote Procedure Calls, defined by some Photon Application. 作为基础概念,操作是远程过程调用,由Photon应用程序定义。The client APIs includes a LitePeer class (or similar construct), which provides methods to call operations on the server, because w.
阅读全文
摘要:Cached Events 缓存事件Usually, the operationRaiseEventsends your event to anyone else, currently in the same room. Cached events are … cached … and will be sent to joining (new) players when they arrive. 通常,操作RaiseEvent发送你的事件到其他当前游戏房间中的玩家,缓存事件是被缓存的,将被发送给新加入的玩家。Use case: Position updates are sent 10 tim.
阅读全文
摘要:Licenses 许可证When starting Photon without a License, it will run with a 20 CCU limitation. You can also get a free License for 100 CCU in our download section. Find more information regarding Licenses below. 当启动Photon没有许可证时,它将运行20CCU。你也可以获得一个免费的许可证有100CCU,下面有更多的关于许可证的信息。Free License 免费许可证Photon can .
阅读全文
摘要:Exception Handling 异常处理With Photon 3.0 the exception handling went through a complete redesign. In previous versions the strategy was to catch all exceptions inside the Photon Framework (photonsocketserver.dll) and log them through a logging facade. This design had several drawbacks: Photon3的异常处理进行.
阅读全文
摘要:Firewall Settings 防火墙设置If Photon should be accessible from remote machines (especially through the internet), make sure the Windows Firewall does not block connections. 如果Photon可以访问远程机器,确保Windows防火墙不阻止该连接。To check settings, open the “Windows Firewall” in the Windows Control Panel. Click “Allow a pr.
阅读全文
摘要:Application - LoadBalancing 负载均衡应用This article explains the server-side implementation of the LoadBalancing application. 本文解释服务端是如何实现LoadBalancing应用程序的。Content 目录Concept 概念Basic Workflow 基本工作流Master Server 主服务器Master: Handling Client Peers 处理客户端用户Master: Handling Game Server Peers 处理游戏服务端用户Game Ser.
阅读全文
摘要:Application - Policy策略应用The Policy Application runs on Photon to send the crossdomain.xml. Web Player platforms like Unity Web Player, Flash and Silverlight request authorization before they contact a server. Policy应用运行在Photon上发送crossdomain.xml。Web Player平台请求授权之前他们连接的服务器。The actual file sent in res.
阅读全文
摘要:Matchmaking & Room Properties 匹配和房间属性Getting into a room to play with (or against!) someone else is very easy with Photon. The workflow described here gets players into rooms without asking them to pick one (randomly) from a long list of rooms. 在Photon上加入一个多人的房间是非常容易的。下面的工作流描述了玩家随机的进入房间,而不是在房间的长
阅读全文
摘要:Client Connection Handling 客户端连接处理Client side, Photon is built to give you as much control as possible. This makes sure it integrates well with your game loop.It also requires some attention to avoid inexplicable disconnects (see also “Connections and Timeouts” inBasic Concepts). The following info
阅读全文
摘要:Extending Lite 扩展LitePersistency is currently not covered in the SDKs we provide. None of our applications saves any data. Every game and application is different and on a high performance server solution, you probably want to control this aspect yourself.持久性是目前没有包含在我们提供的sdk里。我们没有应用程序要保存任何数据。在高性能服务器
阅读全文
摘要:Lite Lobby ConceptsLite Lobby概念Lite Lobby is an application that (literally) extends the Lite Application to offer a listing of currently used rooms. To achieve this, it implements two different types of rooms: the LiteLobbyRoom and a LiteLobbyGame.By convention, join will put you into a lobby when
阅读全文
摘要:Lite Concepts Lite概念Here we will give you a quick overview of the basic concepts for the Lite application. 这我们将给出一个Lite应用的基本概念Peers 参与者Lite is based on the Application framework for Photon and also uses “Peer” as reference to a connected player. This is wrapped up and extended in the class LitePeer.
阅读全文
摘要:What's in Photon 3 Photon3是什么1. High Performance S2S API (Native/C++) 高性能的S2S APIA while back we introduced the TCPClient a managed class better suited for server to server communication than the standard client library. The TCPClient had two disadvantages: First the programming model on both en
阅读全文
摘要:Adding Operations 添加操作In many cases, just sending events is not enough for a game. If you want to provide authorization, persistency or game-specific Operations, it’s time to extend Lite (or LiteLobby).This page shows two ways to implement new Operations and how to use them. Our sample Operation exp
阅读全文
摘要:An App From Scratch 一个应用程序从头开始This tutorial will try to help you understand how to build an application from scratch.(aka “Blank Server Tutorial”) 本教程将试图帮助您理解如何从头构建应用程序(又名空白服务器教程) Build a Simple Chat Server From the Scratch In 10 Minutes 10分钟从头开始构建一个简单的聊天服务器Hint: This tutorial is thought as a fir...
阅读全文
摘要:Lite Lobby Chat Demo Lite大厅的聊天演示This demo shows some of the things you can do with Photon’s “Lite Lobby” Application, purely from the client side. No server programming is involved here. The client is written in C# and uses the Unity Engine (which also has a free edition) as framework and GUI.这个演示展示
阅读全文
摘要:Hello World Part 2 第二部分Inpart 1we introduced some basic concepts of the client API:PhotonPeer,Service,Connect, and the listener/callback design. Building on the application of part 1 (initial connection setup) we will have a look at how to use this connection to create a simple chat, where the appli
阅读全文