首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > PHP > 一个势场的路径发现AS3

一个势场的路径发现AS3

  • 资源大小:10.39 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: as 一个 路径 发现

资 源 简 介

A potential Field library for AS3. This library is built for path finding using a concept called "potential field" where each tile is labeled with a number. The number "0" is called the brightest tiles and to get to the brightest tile you look at the adjacent tiles for values lower than that of the current tile and move accordingly. It can be used with any existing flash library. Download here - https://code.google.com/p/as3-potentialfield/downloads/list or get it here - http://pastebin.com/raw.php?i=L4KfBh0i How to use: 1. Setup the potential field in the main class var potentialfield:PotentialField; 2. Initialize the potential field inside the initialization function potentialField = new PotentialField(); potentialField.loadMap(mapArray, MAP_WIDTH, MAP_HEIGHT); potentialField.generateField(new Point(2,2)); Where mapAr

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
  • 11 9分钟前 成为了本站会员

  • 开心快活人 3小时前 成为了本站会员

  • 晋财 3小时前 成为了本站会员

  • WYG 1天前 成为了本站会员

  • Shine 1天前 成为了本站会员

  • 柳贻 1天前 成为了本站会员

  • hallelujah_HL 1天前 成为了本站会员

  • 焦昱贺 1天前 成为了本站会员

  • Rubin 1天前 成为了本站会员

  • Li 2天前 成为了本站会员

0.152752s