开发者

Algorithms behind Algorithmic Tree or Plant Growing

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 开发者_如何学Cdefine 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..


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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜