Sunday, 19 April 2009

You are now connected

Today I got to sit down with SmartFox server and get my teeth into making something happen and I'm glad to say that I did make something happen. I mostly played around with the SFS API and got to know it a little. I setup some connections. I ran clients over my home network, wrote an app that showed people entering a room, allowed users to create rooms etc so I'm happy that everything makes sense and is going smoothly.

Couple of little things about the SmartFox Server API that can get slightly annoying...There is only one type of event object, good old SFSEvent, that holds specific data for what should be abstracted event data, instead you access the events param object. Whilst this is not such a bad thing, it's not correct and the other thing is that the AS3 examples are all written in flex so I found myself looking at the AS2 code, cross referencing it with AS3 syntax from the API docs and then finally I laid down some code. These are minor issues though and other than these, the API is intuative and well documented so overall very nice to work on.

I am slowly moving towards sending data objects over to other users and then i'll be looking at interpolation techniques. This should allow the movement of player sprites over laggy connections to be kept smooth and keep things looking nice. This will use the time-based techniques that I spoke about in my earlier post.

Gary Paluk

0 comments:

Post a Comment