资 源 简 介
This is a basic toolkit for everyday flash use like:
Logger class (avoid putting trace commands all over)
Stopwatch for measuring execution time
Simple tile-based A-Star implementation
Basic fps-meter with graph (i like it visual)
Yes I"m lazy, but here"s some info
AStar Notes
This following explanation uses the Flash Player 10 version, using the new FP10 class Vector (which is much faster than using an Array).
All you should need is in package com.baseoneonline.flash.astar
The most important types are AStar and Graph.
TileGraph and TileNode are there as an example or maybe it just suits your needs.
Using the pathfinder
This example is using the TileGraph and TileNode classes
Create a grid with 50*30 tiles using the provided TileGraph, a implementation of Graph. You could use your own implementation of the Graph