Tutorials?

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

Post Reply
Georgie
Posts: 22
Joined: 09 Dec 2010, 23:10

Tutorials?

Post by Georgie »

Are there any tutorials around on Unity and the new SmartFox?
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Post by ThomasLund »

Hey

Definitely! The first 3 original tutorials are shipped with the server download (connection, basic lobby, tic-tac-toe). Additionally there is a sticky on this forum with a full FPS example that has an almost authoritative server

The FPS demo more or less replaces the old Island demo, which is not ported.

/Thomas
Georgie
Posts: 22
Joined: 09 Dec 2010, 23:10

Post by Georgie »

Are there any actual tutorials tho? and not demos?

I just want information on:

How to Connect

How to send information to the server

How to receive information on the server

and how to send and receive to and from the server itself.
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Post by ThomasLund »

Given that you dont expect a "how to program in Unity" tutorial, then you can learn those kind of things from the official documentation:

http://docs2x.smartfoxserver.com/Develo ... troduction

The APIs are 99% similar across platforms on the client side. So if you read these, then you will learn how to use the system in general. Then take a look at the Unity demos for code that shows how its practically implemented in Unity. You will discover that its very very similar to the point of cut'n'paste with a few language specific changes (capital first letter of method names primarily)

Only UDP initialization is really different

/Thomas
dragagon
Posts: 19
Joined: 05 Dec 2010, 00:23

Post by dragagon »

I'm in the process of typing up a series of tutorials on my blog that cover this. If you want to follow along it is up at http://mmocraftershaven.blogspot.com.

I started from bare scratch with Unity3d, SmartFoxServer, and I'm walking through setting up the development environment. Tonight I will be trying to type up the material necessary to get a set of message handlers and messages back and forth between the server in an object oriented manor. I already have prototyped it all out so I know it works, it is just time consuming to put it all together in a readable format.
Georgie
Posts: 22
Joined: 09 Dec 2010, 23:10

Post by Georgie »

Sounds fantastic!
Post Reply