Archive for aprile, 2011

Steering Behavior Library From C++ To As3

Hi all,
i converted a c++ library of steering behaviors to as3. See the page on the blog.
It’s still in beta because I’m testing it to be sure there are no errors. The library is taken from the source code of the book “Programming game ai by example” you can find c++ sources and binaries at http://www.jblearning.com/Catalog/9781556220784/student/ and some excerpt and related talk at http://www.ai-junkie.com/books/index.html my first two little example in as3 are at http://www.imageinaction.net/works/steeringBehavior/flocking.html and http://www.imageinaction.net/works/steeringBehavior/followPath.html (refresh the page to get a new random path)
The library is based on simple behaviors like seek, avoid, interpose, obstacles avoidance, cohesion, alignement etc. that can be combined togheter to get a more complex behavior. by the way as part of it there are some usefull class to perform some geometry, collision detection, vector operation. there is anybody out there that would like to help me testing, improving, optimizing the code? I would like to release it as open source as soon as I ended the tests. By now you can download it on the Steering Behaviors page but remember it’s still beta…
I think that such a library can be a great resource to anyone developing as3 games.
Let me know..

Actionscript chess PGN file viewer

I started to make a .PGN file viewer in actionscript. For the uninitiated the PGN format (not to be confused with the PNG) is a format for encoding of chess match. I am not here to explain how the format works, to know this you can view this page. I just wanted to let you see what I have done so far. The program loads a pgn from your computer and re-create the game on the board allowing you to scroll through the moves with a keyboard or clicking on the move who want to go. This is only a part of what I want to do, I want to reproduce all the features of the tool you can find at www.gameknot.com. Try it and let me know what you think. Of course you should have at least one pgn on your computer to prove it. The Internet is full of free pgn database, however if you do not even give you a link here to prove a pgn viewer. is the first match between Kasparov and Deep Blue …

Return top