View Mode: Normal | Article List

Bresenham algorithm

[ 2009-03-20 22:29:33 | Author: liuhuan ]
Bresenham algorithm is widly used in drawing straight lines. More importantly, it provides a way for us to find the shortest way from one point to another when developing flash games.

If you want to draw a tiny thin line in flash, have a try with this algorithm.


var size:Number = 20;
var curPoint:int = 1;
var firstPoint:Point= new Point();
...

Read More...

Spark project

[ 2009-03-20 17:32:57 | Author: liuhuan ]
a great actionscript open source site.

http://www.libspark.org/wiki/WikiStart/en

If you're good at Japanese, visit:http://www.libspark.org

some good Japanese blog: http://www.scratchbrain.net/blog/ver2/flash/index.php

Special characters

[ 2009-02-25 14:52:41 | Author: liuhuan ]
embeded characters in flash:
ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛßàáâã äåæçèéêëìíîïñòóôõöùúûüŒœ¿

Chong Qing

[ 2009-02-12 10:11:36 | Author: liuhuan ]
uploads/200902/15_101150_img_1595.jpg

Chang Jiang River

[ 2009-02-11 10:09:41 | Author: liuhuan ]
uploads/200902/15_101002_img_1547.jpg