Hi, I'm a web programmer. I mainly develop in C#.
I was researching to develop a multiplayer online game and get here.
I was wondering if it is possible with the last version of SmartFoxServer to use C# and Visual Studio to code.
Is this possible in the previous version too?
Any help is much appreciated, I'm a bit lost in this new world.
Many thanks.
SmartFoxServer versions and .NET
-
- Posts: 1297
- Joined: 14 Mar 2008, 07:52
- Location: Sweden
Sure thing - you should use the "Unity" API - which is in its core a simple C# assembly and works in regular C# too. But in the gaming world its primarily use in Unity.
So go ahead and take a look at that one. it exists both for SFS1 and SFS2X
For 2X please turn "thread safe mode" off when using it inside C#. There is a property on the SmartFox class.
Also - all Unity examples are written in C#. So although there are some Unity specific callbacks, you should be able to dissect them for usage in a regular C# program
/Thomas
So go ahead and take a look at that one. it exists both for SFS1 and SFS2X
For 2X please turn "thread safe mode" off when using it inside C#. There is a property on the SmartFox class.
Also - all Unity examples are written in C#. So although there are some Unity specific callbacks, you should be able to dissect them for usage in a regular C# program
/Thomas
Full Control - maker of Unity/C# and Java SFS API and indie games
Follow on twitter: http://twitter.com/thomas_h_lund
Follow on twitter: http://twitter.com/thomas_h_lund
Thank you tchen, I was just going to ask that.
I noticed that I can use C# but only in the client, which I won't, because I'll use Flash in the client.
Correct me if I'm wrong, in the server I can use Java, Python, Action Script and JavaScript? (I read this in the book).
Where can I find examples of server programming with smartfoxserver with Java?
Many thanks again.
I noticed that I can use C# but only in the client, which I won't, because I'll use Flash in the client.
Correct me if I'm wrong, in the server I can use Java, Python, Action Script and JavaScript? (I read this in the book).
Where can I find examples of server programming with smartfoxserver with Java?
Many thanks again.
-
- Posts: 1297
- Joined: 14 Mar 2008, 07:52
- Location: Sweden
Sooooo sorry and thanks for correcting me.
Yes - what I talked about was client side only. 2X Server is java only. SFS 1 has other options. Personally starting from scratch I would choose 2X (if for nothing else than the more generous starter license) and learn Java if I were you. C# and Java are pretty similar, so should not be a problem for you
Good java IDE: IntelliJ IDEA is the best, followed by Eclipse and further down the foodchain Netbeans and similar
/me ducks the Java IDE religion war
Yes - what I talked about was client side only. 2X Server is java only. SFS 1 has other options. Personally starting from scratch I would choose 2X (if for nothing else than the more generous starter license) and learn Java if I were you. C# and Java are pretty similar, so should not be a problem for you
Good java IDE: IntelliJ IDEA is the best, followed by Eclipse and further down the foodchain Netbeans and similar
/me ducks the Java IDE religion war
Full Control - maker of Unity/C# and Java SFS API and indie games
Follow on twitter: http://twitter.com/thomas_h_lund
Follow on twitter: http://twitter.com/thomas_h_lund
Technically Java is the only supported language and all documentation is based around that.
Scala, because of how it works, just piggybacks on the same JVM and has 1-1 interop so it can do exactly the same. Normally we don't talk about it here, but I just mentioned it because I know how frustratingly primitive Java can feel sometimes when you come from C#-land.
Scala, because of how it works, just piggybacks on the same JVM and has 1-1 interop so it can do exactly the same. Normally we don't talk about it here, but I just mentioned it because I know how frustratingly primitive Java can feel sometimes when you come from C#-land.
Who is online
Users browsing this forum: No registered users and 142 guests