Unity3D With Meteor

Post on 19-Jan-2017

412 views 0 download

Transcript of Unity3D With Meteor

05/01/2023 UNITY WITH METEOR - TRINH DUC HUY 1

UNITY3D WITH METEOR

TRINH DUC HUY

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 2

SUMMARYA glance about Unity3D and Meteor

Meteor with Unity3D Desktop and Mobile

Meteor with Unity3D WebGL

Demo

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 3

Realtime

Open source

Simple

MongoDb

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 4

Game Engine

Cross Platform

Large Communi

ty

C# & Javascrip

t

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 5

WHY USING METEORJS AS GAME SERVER■ No SQL database support.■ Collections and Methods■ Free and fast to deploy a server.

05/01/2023 UNITY WITH METEOR - TRINH DUC HUY 6

METEOR WITH UNITY3D MOBILE

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 7

HIDDENSWITCH PLUGIN

■ Document : http://hiddenswitch.github.io/Meteor-Unity/annotated.html

■ Github : https://github.com/hiddenswitch/Meteor-Unity

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 8

hiddenswitch

Accounts

Collection

Connection

Cursor

Error

LoginResult

Method

Mongo Documen

t

Observe

Subscribe

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 9

CONNECT

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 10

SUBSCRIPTION

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 11

METHOD

05/01/2023 UNITY WITH METEOR - TRINH DUC HUY 12

METEOR WITH UNITY3D WEBGL

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 13

INTERACTIVE WITH JAVASCRIPT■ Call from outside javascript to inside Unity3D.– SendMessage ('MyGameObject', 'MyFunction',

'foobar');■ Call from inside Unity3D to outside Javascript .– Application.ExternalCall();

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 14

BLAZE

METEOR CODE

UNITY WEBGL

GAME OBJECT : A

05/01/2023 UNITY WITH METEOR - TRINH DUC HUY 15

DEMO

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 16

QUICK GLANCE

■ Connect to server will auto create player■ Sync data from all other client■ When current client have input will send command

to all other client

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 17

ARCHITECTURE

■ 2 Collections– Players : Current state of all client – Commands : This collection use for change client’s

state■ 2 Methods– createPlayer : Call when connect to server– insertComand : Call when client update something

will notify to server

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 18

UNITY3D SETUP

■ Needed folder – Atlases– Plugins– Prefabs– Resources– Scenes– Textures

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 19

UNITY3D PLUGINS

■ JSON.NET■ Meteor-Unity■ NGUI ■ Pixel placement

05/01/2023 UNITY WITH METEOR - TRINH DUC HUY 20

THANK YOU