views:

176

answers:

1

What are all the algorithms involved in Farmville game, specifically I am interested in drawing trees that has fruits based on user's activities.

I am into a project which has a specific need to draw a tree-type image in SVG. I am not sure how to go about the algorithms to define the tree and based on certain business rules the leafs in the tree grows etc., I think you get the idea. Farmville is just an example I took to explain.

Any help is greatly appreciated..

A: 

The comments above show the case for a simple sprite based tree. This is what most systems will use. I fail to see how business rules apply - perhaps you also need a factory interface factory ;).

If you are actually interested in programatically generating natural systems, I suggest looking at L-systems. The Algorithmic Beauty of Plants is also a fantastic reference book (made available as a PDF as its out of print)

Yann Ramin