随笔分类 - 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.阅读全文
posted @ 2013-05-15 14:07 M守护神 阅读(511) | 评论 (0) 编辑
摘要: 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. 对.阅读全文
posted @ 2013-05-15 14:07 M守护神 阅读(498) | 评论 (0) 编辑
摘要: 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.阅读全文
posted @ 2013-05-15 14:06 M守护神 阅读(254) | 评论 (0) 编辑
摘要: 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.阅读全文
posted @ 2013-05-15 14:06 M守护神 阅读(318) | 评论 (0) 编辑
摘要: 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.阅读全文
posted @ 2013-05-15 14:06 M守护神 阅读(269) | 评论 (0) 编辑
摘要: 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 .阅读全文
posted @ 2013-05-15 14:06 M守护神 阅读(924) | 评论 (0) 编辑
摘要: 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的异常处理进行.阅读全文
posted @ 2013-05-15 14:06 M守护神 阅读(464) | 评论 (0) 编辑
摘要: 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.阅读全文
posted @ 2013-05-15 14:06 M守护神 阅读(241) | 评论 (0) 编辑
摘要: 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.阅读全文
posted @ 2013-05-15 14:05 M守护神 阅读(1138) | 评论 (0) 编辑
摘要: 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.阅读全文
posted @ 2013-05-15 14:05 M守护神 阅读(171) | 评论 (0) 编辑
摘要: 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上加入一个多人的房间是非常容易的。下面的工作流描述了玩家随机的进入房间,而不是在房间的长阅读全文
posted @ 2013-05-15 14:05 M守护神 阅读(537) | 评论 (0) 编辑
摘要: 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 阅读全文
posted @ 2013-05-15 14:04 M守护神 阅读(662) | 评论 (0) 编辑
摘要: 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里。我们没有应用程序要保存任何数据。在高性能服务器阅读全文
posted @ 2013-05-15 13:52 M守护神 阅读(327) | 评论 (0) 编辑
摘要: 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 阅读全文
posted @ 2013-05-15 13:51 M守护神 阅读(379) | 评论 (0) 编辑
摘要: 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.阅读全文
posted @ 2013-05-15 13:50 M守护神 阅读(457) | 评论 (0) 编辑
摘要: 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阅读全文
posted @ 2013-05-15 13:48 M守护神 阅读(379) | 评论 (0) 编辑
摘要: 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阅读全文
posted @ 2013-05-15 13:46 M守护神 阅读(361) | 评论 (0) 编辑
摘要: 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...阅读全文
posted @ 2013-05-15 13:45 M守护神 阅读(804) | 评论 (0) 编辑
摘要: 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.这个演示展示阅读全文
posted @ 2013-05-15 13:44 M守护神 阅读(1023) | 评论 (0) 编辑
摘要: 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阅读全文
posted @ 2013-05-15 13:43 M守护神 阅读(750) | 评论 (0) 编辑
摘要: Hello World Part 1 第一部分The purpose of this tutorial is to give you an introduction to the client API and some of the basic concepts behind Photon. The tutorial is divided in parts. We begin with a very simple demo which will be refactored to more usable code step by step while digging deeper into th阅读全文
posted @ 2013-05-15 13:42 M守护神 阅读(920) | 评论 (0) 编辑
摘要: Photon Control Photon控制器Photon Control is your one-stop, control UI for Photon. Starting PhotonControl.exe doesn’t open a window, doesn’t start the server but adds an icon to the tray bar.A gray icon shows that Photon is not running. When any Photon Server is process running, the icon turns blue. P.阅读全文
posted @ 2013-05-15 13:41 M守护神 阅读(727) | 评论 (0) 编辑
摘要: Setup and Config 设置与配置This chapter explains how files and folders are organized for the Photon Server and how things are setup. Everything needed is in the deploy folder. 这章解释了在服务器上文件和文件夹是如何被组织和配置的。Content 内容Organization of Server and Applications组织服务器与应用程序Configuration: PhotonServer.config配置Photon.阅读全文
posted @ 2013-05-15 13:40 M守护神 阅读(1441) | 评论 (0) 编辑
摘要: Product Overview 产品概述On the client-side, Photon supports various platforms. Even though programming in C, C# and Flash is very different, the basic workflow stays similar. In this online documentation we try to explain the concepts and background, while language specifics are left to the reference d阅读全文
posted @ 2013-05-15 13:36 M守护神 阅读(526) | 评论 (0) 编辑
摘要: Basic Concepts 基本概念The following article will show you the important basic concepts for Photon. 以下是要告诉你的Photon重要基本概念Applications 应用程序An Application is the server side logic for a game. All features of a game (e.g. remote procedure calls, data storing, etc.) are implemented in a Photon application. .阅读全文
posted @ 2013-05-15 13:35 M守护神 阅读(609) | 评论 (0) 编辑
摘要: Base Applications 基本应用程序The Photon Server SDK includes several applications that should provide a good starting point for your own development. What each SDK does and for which game-style it might be a useful basis is described below. 以下是Photon服务器SDk包含的内置应用程序,可以作为你的应用的开始点。 LiteThe Lite Application .阅读全文
posted @ 2013-05-15 13:34 M守护神 阅读(701) | 评论 (0) 编辑
摘要: 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/Downloa.阅读全文
posted @ 2013-05-14 08:25 M守护神 阅读(777) | 评论 (0) 编辑
摘要: Requirements 需求For developing and setting up your own server the following additional software is needed: 为了开发和配置你的服务器,以下软件是必需:Operating System to Run Photon Server 运行Photon服务器操作系统Windows XP, Windows Vista, Windows 7 or Windows 8recommended development OS(开发环境系统): Windows 7 x64recommended productio.阅读全文
posted @ 2013-05-10 08:27 M守护神 阅读(534) | 评论 (0) 编辑
摘要: Feature Overview 功能概述Photon is areal-time socket serveranddevelopment frameworkthat is fast, simple to use and flexible. Client SDKs are available for all major platforms: Photon是一个快速、简单、灵活、实时的Socket服务器和开发框架,客户端SDK可用于以下平台:The Photonhigh level architecturelooks like this: Photon的高级架构体系:Basic Archit..阅读全文
posted @ 2013-05-07 20:46 M守护神 阅读(923) | 评论 (0) 编辑
摘要: Introduction 介绍Welcome to thePhoton Serverdocumentation. If you are looking for the Photon Cloud documentation, please go overhere. —— Photon云文档The documentation is split into three topics:Getting Started,Tutorials,References. Just head over there using the links below and take a look. You will alwa阅读全文
posted @ 2013-04-24 22:01 M守护神 阅读(1108) | 评论 (0) 编辑