photon for unity

22
Photon For Unity

Upload: dat-pham

Post on 25-Jul-2015

175 views

Category:

Technology


11 download

TRANSCRIPT

Page 1: Photon For Unity

Photon For Unity

Page 2: Photon For Unity

Introduction to Photon• Photon is a Socket Server & Framework

- Target : Realtime, multiplayer, cross-platform games.

• 16k+ registered developers

• Transparent pricing, empower Indies.

Page 3: Photon For Unity

Photon Realtime

Page 4: Photon For Unity

Photon Realtime

Page 5: Photon For Unity

Photon Realtime

Page 6: Photon For Unity

Photon Realtime

Page 7: Photon For Unity

Photon Turnbased

Page 8: Photon For Unity

Photon Turnbased

Page 9: Photon For Unity

Photon PUN

Page 10: Photon For Unity

Photon Chat

Page 11: Photon For Unity

Photon Chat

Page 12: Photon For Unity

Photon Server

Page 13: Photon For Unity

UN vs PUN• Unity Networking (UN) is very convenient, simple and powerful.

• It is the entry point for most Indies to start Networking experiments.

• BUT it has several major draw backs

UN need Master Server to be hosted.

P2P leads to NAT/punch-through issues (especially in mobile network.

Dropped host kill the game and so frustrate players

Page 14: Photon For Unity

UN vs PUN

Page 15: Photon For Unity

Photon PUN

Page 16: Photon For Unity

Photon PUNCCU: Concurrent users.

20 CCU means 20 concurrent users is 20 users on the game at the same time.

Page 17: Photon For Unity

PUN hands-on

• Register and get app id.

• Download Photon PUN on Asset Store.

Page 18: Photon For Unity

PUN hands-on• Lobby

- Properties can be synced.

• Rooms

- Exchange data in realtime.

- Set and get properties of Players and Rooms.

Page 19: Photon For Unity

Photon PUN• Connect US, EU or Asia

Page 20: Photon For Unity

Photon• Get from the Lobby into a Room quickly

Page 21: Photon For Unity

Photon• SerializeView

- Add Prefab.

- Add PhotonView (script)

- Add Script for Update

Page 22: Photon For Unity

Photon