Sign in to follow this  
Darkbouncer4689

What's needed to recreate farmville

Recommended Posts

Hey all,

If one wanted to recreate a game like farmville, what technologies would they need to learn?

I believe farmville is in flash, is it actionscript 2 or actionscript 3? I'm also pretty sure they have their GUI system in CSS. What about the backend? PHP and MySQL? Do they even have any client side javascript or is all of the logic handled on their servers?

Thanks for the help!

Share this post


Link to post
Share on other sites
[quote name='Darkbouncer4689' timestamp='1317353003' post='4867447']
Hey all,

If one wanted to recreate a game like farmville, what technologies would they need to learn?

I believe farmville is in flash, is it actionscript 2 or actionscript 3? I'm also pretty sure they have their GUI system in CSS. What about the backend? PHP and MySQL? Do they even have any client side javascript or is all of the logic handled on their servers?

Thanks for the help!
[/quote]

It doesn't matter, I'm not that familiar with farmville but i assume its one of those multiplayer:ish community based web games that are so popular these days, For any such game you basically need 2-3 things:

1) Something to use for the client, (Flash is the most popular choice for 2D web games, but Javascript/HTML/CSS works aswell, For 3D games something like Unity or Java will be a better choice)
2) Something to use for the server (This varies greatly, Java, Python, C# or JavaScript (using node.js) are common choices for games that require persistent connections and a server pushing updates to the game, PHP and ASP.Net only really work well if you can afford to have the client do the pushing and pulling of updates, it will allow you to use a cheaper webhost for the server though and it can be slightly easier to develop a game this way, especially if you come from a web background.
3) (Depending on the game), Some form of system to store all the player data, a database such as MySQL is a common and fairly simple solution.

As a rule of thumb you want to handle anything which is important on the server, The player has full control of what the client does and as such the client can never be trusted. (This not only means that you have to deal with clients trying to cheat, it also means that you need to deal with clients sending you data that is designed to crash your server or cause it to run code written by the hacker)

Share this post


Link to post
Share on other sites
[quote name='SimonForsman' timestamp='1317357299' post='4867466']
[quote name='Darkbouncer4689' timestamp='1317353003' post='4867447']
Hey all,

If one wanted to recreate a game like farmville, what technologies would they need to learn?

I believe farmville is in flash, is it actionscript 2 or actionscript 3? I'm also pretty sure they have their GUI system in CSS. What about the backend? PHP and MySQL? Do they even have any client side javascript or is all of the logic handled on their servers?

Thanks for the help!
[/quote]

It doesn't matter, I'm not that familiar with farmville but i assume its one of those multiplayer:ish community based web games that are so popular these days, For any such game you basically need 2-3 things:

1) Something to use for the client, (Flash is the most popular choice for 2D web games, but Javascript/HTML/CSS works aswell, For 3D games something like Unity or Java will be a better choice)
2) Something to use for the server (This varies greatly, Java, Python, C# or JavaScript (using node.js) are common choices for games that require persistent connections and a server pushing updates to the game, PHP and ASP.Net only really work well if you can afford to have the client do the pushing and pulling of updates, it will allow you to use a cheaper webhost for the server though and it can be slightly easier to develop a game this way, especially if you come from a web background.
3) (Depending on the game), Some form of system to store all the player data, a database such as MySQL is a common and fairly simple solution.

As a rule of thumb you want to handle anything which is important on the server, The player has full control of what the client does and as such the client can never be trusted. (This not only means that you have to deal with clients trying to cheat, it also means that you need to deal with clients sending you data that is designed to crash your server or cause it to run code written by the hacker)
[/quote]

Interesting... web content is so annoying >_> Thanks for the help!

Also, do these games use Actionscript 2 or Actionscript 3?

Share this post


Link to post
Share on other sites
I don't understand why would you want to use an older version of the scripting language unless you're already familiar with As2.

By the way, not that i have any experience with Html5 but, i think it will eventually toss flash away so you may want to give it a look.

Share this post


Link to post
Share on other sites
[quote name='Darkbouncer4689' timestamp='1317358456' post='4867470']
[quote name='SimonForsman' timestamp='1317357299' post='4867466']
[quote name='Darkbouncer4689' timestamp='1317353003' post='4867447']
Hey all,

If one wanted to recreate a game like farmville, what technologies would they need to learn?

I believe farmville is in flash, is it actionscript 2 or actionscript 3? I'm also pretty sure they have their GUI system in CSS. What about the backend? PHP and MySQL? Do they even have any client side javascript or is all of the logic handled on their servers?

Thanks for the help!
[/quote]

It doesn't matter, I'm not that familiar with farmville but i assume its one of those multiplayer:ish community based web games that are so popular these days, For any such game you basically need 2-3 things:

1) Something to use for the client, (Flash is the most popular choice for 2D web games, but Javascript/HTML/CSS works aswell, For 3D games something like Unity or Java will be a better choice)
2) Something to use for the server (This varies greatly, Java, Python, C# or JavaScript (using node.js) are common choices for games that require persistent connections and a server pushing updates to the game, PHP and ASP.Net only really work well if you can afford to have the client do the pushing and pulling of updates, it will allow you to use a cheaper webhost for the server though and it can be slightly easier to develop a game this way, especially if you come from a web background.
3) (Depending on the game), Some form of system to store all the player data, a database such as MySQL is a common and fairly simple solution.

As a rule of thumb you want to handle anything which is important on the server, The player has full control of what the client does and as such the client can never be trusted. (This not only means that you have to deal with clients trying to cheat, it also means that you need to deal with clients sending you data that is designed to crash your server or cause it to run code written by the hacker)
[/quote]

Interesting... web content is so annoying >_> Thanks for the help!

Also, do these games use Actionscript 2 or Actionscript 3?
[/quote]

It really depends on when the game was made, AS3 has a few extra features that make developing easier and if used properly can improve performance so there is little reason to use AS2 these days, In general it is impossible for the user to tell which version of the language was used.

Share this post


Link to post
Share on other sites
[quote]What's needed to recreate farmville?[/quote]
A large supply of bored house wives. [img]http://public.gamedev.net/public/style_emoticons/default/tongue.gif[/img]

Share this post


Link to post
Share on other sites
An unquenchable lust for profit and morals looser than Peter Jackson's old wardrobe.

(Also some sort of and a HUGE backend to handle store transactions, social media integration and metrics gathering. In terms of actual gameplay programming, it's not that nuts.)

Share this post


Link to post
Share on other sites
[quote name='VJ01' timestamp='1317402814' post='4867650']
i like to do cross-platform Flash building / production. are there shareware tools for this ?
[/quote]I'm going to provide a brief answer because this is vaguely related to the topic in question, but in future please start your own topic if you want to ask a question that isn't directly related to the topic being discussed. You can use [url="http://www.flashdevelop.org/wikidocs/index.php?title=Main_Page"]FlashDevelop[/url] and/or [url="http://haxe.org/"]haXe[/url] to target the Flash platform for free.

Additionally, please stop quoting the entire post you are responding to every time you post -- some of them are quite large, and in many cases they aren't necessary -- only include a quote if it might be unclear which post you are responding to or if you need to respond to a specific small segment of a post. I've just been through removing large and unneeded quotes from a number of your replies.

Share this post


Link to post
Share on other sites
[quote name='VJ01' timestamp='1317476174' post='4867962']
[size="5"][b]cross-platform[/b][/size]is important because there are incompatibilities across app domains.
[/quote]

WHO is this directed at, why must you use obnoxious font sizes, and what does it have to do with the topic at hand?

Share this post


Link to post
Share on other sites
[quote name='lpcstr' timestamp='1317476899' post='4867966']
[quote name='VJ01' timestamp='1317476174' post='4867962']
[size="5"][b]cross-platform[/b][/size]is important because there are incompatibilities across app domains.
[/quote]

WHO is this directed at, why must you use obnoxious font sizes, and what does it have to do with the topic at hand?
[/quote]

How?
To build farmville please i like to have cross-platform software because web is world wide today [u]not in your head[/u]. i am going to speak on this shortly for deleting a [b]code post[/b] from me and others.

Share this post


Link to post
Share on other sites
Thanks for the posts guys. I wasn't sure how new AS3 was and if it would be defaulty supported, but it seems like thats what I should learn first. Once I can get something basic on the screen I'll have to learn PHP for some kind of backend.

Share this post


Link to post
Share on other sites
[quote name='VJ01' timestamp='1317476174' post='4867962']
[size="5"][b]cross-platform[/b][/size]is important because there are incompatibilities across app domains.
[/quote]
FlashDevelop runs on Windows, but as per [url="http://www.flashdevelop.org/wikidocs/index.php?title=F.A.Q#What_operating_system.28s.29_does_FlashDevelop_run_on.3F"]their faq[/url] can also be run on OSX and Linux via virtualization software. There are also efforts being made to provide "native" support for both of these platforms.
haXe is available for Windows, OSX and Linux.

These are the two tools I already suggested above. Both are free. One is cross-platform, and the other is currently being made to work cross-platform but can already be used cross-platform via virtualization.

Adobe FlashBuilder is available for Windows and OSX, but I didn't mention it above because it is not free (or even cheap), although if you're a student or part of certain not-for-profit organisations you may be eligible for a free licence.

Share this post


Link to post
Share on other sites
jbadams oct 1 : "... if you want to ask a question that isn't directly related to the topic being discussed."

But on UNIX, I had Solaris, there is no Flash support. See Illumos UNIX project and under Help forums. I asked them repeatedly to support Flash but they are dodging the question and not answering!
[[url="https://www.illumos.org/boards/3/topics/722"]Flash does not work![/url]]

Share this post


Link to post
Share on other sites
Yeah, we aren't going to go off on a tangent just because you can't install flash on an OS.

The OP appears to have an answer so I'm going to close this, however if you have more questions/queries on the subject Darkbouncer4689 feel free to open a new thread on it.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this