So... I want to build the logic of my game on the server, it needs to be quick and I also need to access a MySQL database to store information about my players. What do I do? I could use PHP / ASP etc but there is a more secure option. These are known as SmartFox extensions.Extensions for SmartFox can be written in AS1, Java or Python. Since the Server itself is written in Java and I have been advised to use Java. A friend and I opened up Eclipse and setup a new workspace, we grabbed a copy of the MySQL drivers and made an attempt to log in on my SmartFox application, get data from the MySQL database and return the data to the player. After a short time we had it working. There were a few steps in order to make this happen and luckily these are outlined in the SmartFox Server documentation files.
Smartfox allows the use of ActionScript objects which make moving data to and fro very neat. I think that this is an extremely useful and powerful concept which I will continue to learn and hopefully I'll be writing the server logic to my game very soon.
Gary Paluk
0 comments:
Post a Comment