*Author

chriskang

  • Guest
Question about the technical https://elementscommunity.org/forum/index.php?topic=763.msg7302#msg7302
« on: December 15, 2009, 10:10:05 pm »

The client (swf) is created with Flash 8.0 and counts about 15000 lines of code (all in actionscript).
The data persistence part is handled by a MySQL database but, as MySQL cannot be accessed directly by actionscript, Zanzarino had to create some wrappers to link both worlds.
Those wrappers are written in PHP. The client simply calls them with an HTTP POST and reads the result in plain text.

AI decks are all loaded at startup and while you play AI1, AI2, AI3 or FG, the only communication with the database is to store your score.
For t50, the game asks MochiAd for the list of the 50 top players, then randomly picks one, and finally retrieves the deck of this player from Zanzarino's database. Once the deck is loaded, there's no more communication with the server.
The hardest part is pvp/duel:
After each "end turn" from your side, your client sends the current game state to the server which stores it into the database and somehow transmits it to the other player.
I'm not 100% sure here, but I think the "standby" client just keeps asking for some news every second or so, until it gets a positive response from the server.


SnDance

  • Guest
Question about the technical https://elementscommunity.org/forum/index.php?topic=763.msg7303#msg7303
« Reply #1 on: December 15, 2009, 10:10:05 pm »

 :-[ I r 2 not be the learningz of script!

*Slaps self...language systems rebooting...
...
...
Complete.
Initializing stability...
...
...
Unable to comply, building in progress...wait...this isn't Red Alet I...
Stability reached*

Anyways ^^

I can do the flash bit...and I know some HTML...but the MySQL...Fuggedaboutit

Anyone wana do it for me XD

SnDance

  • Guest
Question about the technical https://elementscommunity.org/forum/index.php?topic=763.msg7304#msg7304
« Reply #2 on: December 15, 2009, 10:10:05 pm »

Anyone know how this game was actually made? I mean, I know its with flash, but how was it made multiplayer, and how are our accounts stored?

*Mmorpg maker wana-be*

SnDance

  • Guest
Question about the technical https://elementscommunity.org/forum/index.php?topic=763.msg7305#msg7305
« Reply #3 on: December 15, 2009, 10:10:05 pm »

lol I'm glad you did ^^ I laughed too when the line came to me ^^

Question about the technical https://elementscommunity.org/forum/index.php?topic=763.msg7306#msg7306
« Reply #4 on: December 15, 2009, 10:10:05 pm »

Unable to comply, building in progress...wait...this isn't Red Alet I...
I quite literally LMAO'ed...wow, that brings back memories...XD

 

anything
blarg: