没有合适的资源?快使用搜索试试~ 我知道了~
navmesh:一个用于使用navmeshes在JS中进行路径查找的插件,其中包含Phaser 3和Phaser 2的包装
共125个文件
js:47个
png:18个
json:18个
需积分: 50 1 下载量 59 浏览量
2021-02-03
11:57:17
上传
评论
收藏 4.66MB ZIP 举报
温馨提示
导航网格概述 一个用于使用进行快速寻路的JS插件,以及用于Phaser v2和Phaser v3游戏引擎的可选包装。 (注意:如果您正在GitHub或NPM上查看此内容,则可能要在查看HTML文档。) 目录: 介绍 寻路本质上是解决迷宫,在点之间找到路径同时避开障碍物的问题。 在游戏中寻路时,我们需要: 通过定义可步行区域来表示游戏世界。 在该表示中搜索最短路径。 在进行2D寻路时,一种常见的方法是使用(网格)表示世界,然后使用(例如 )搜索路径。如果您有50 x 50的图块世界,则进行搜索一条路径涉及搜索多达2500个位置(“节点”)的世界表示。 该插件使用导航网格物体简化了搜索。 与其将世界表示为瓷砖网格,不如将其表示为网格的世界可步行区域。 这意味着世界的表示具有更少的节点,因此可以比网格方法更快地进行搜索。 该方法比Phaser的A *插件快5倍-150倍(请参见性能部分),具体取决于网格。 下面的示例地图(左)是30 x 30的地图。 作为网格,有900个节点,但是作为导航网格(右),有27个节点(彩色矩形)。 安装 该存储库包含3个相关的JS软件包: navm
资源推荐
资源详情
资源评论
收起资源包目录
navmesh:一个用于使用navmeshes在JS中进行路径查找的插件,其中包含Phaser 3和Phaser 2的包装 (125个子文件)
follower.ai 361KB
follower.ai 361KB
follower.ai 359KB
injected-style.css 203B
tiled-navmesh-layer.gif 232KB
single-following-agent.gif 106KB
.gitignore 86B
.gitignore 6B
.gitignore 6B
index.html 636B
index.html 636B
index.html 550B
index.html 550B
index.html 550B
index.html 399B
index.html 390B
index.html 358B
main.js 3.26MB
main.js 3.21MB
phaser-navmesh.js 49KB
phaser2-navmesh.js 48KB
navmesh.js 38KB
phaser-astar.js 20KB
phaser-navmesh.min.js 14KB
phaser2-navmesh.min.js 14KB
navmesh.js 12KB
navmesh.min.js 11KB
phaser2-navmesh.js 7KB
phaser-navmesh.js 7KB
start.js 5KB
easy-star-plugin.js 5KB
phaser-navmesh-plugin.js 3KB
start.js 3KB
many-paths.js 3KB
navpoly.js 3KB
start.js 3KB
channel.js 3KB
phaser2-navmesh-plugin.js 3KB
nav-mesh.test.js 3KB
follower.js 2KB
triangulate.js 2KB
follower.js 2KB
webpack.config.js 2KB
utils.js 2KB
utils.test.js 2KB
index.js 1KB
webpack.config.js 1KB
polygon.js 1KB
webpack.config.js 1KB
webpack.config.js 972B
main.js 971B
webpack.config.js 961B
load.js 948B
load.js 892B
navgraph.js 818B
line.js 814B
main.js 807B
vector-2.js 658B
.eslintrc.js 623B
main.js 566B
load.js 320B
index.js 174B
index.js 168B
index.js 58B
map.json 30KB
map.json 30KB
map.json 26KB
map.json 26KB
map.json 26KB
package.json 1KB
package.json 1KB
package.json 1KB
package.json 1KB
package.json 817B
package.json 782B
esdoc.json 623B
babel.config.json 446B
package.json 407B
tsconfig.json 245B
settings.json 237B
lerna.json 130B
jest.config.json 46B
LICENSE 1KB
yarn.lock 517KB
main.js.map 3.99MB
main.js.map 3.92MB
phaser-navmesh.js.map 82KB
phaser2-navmesh.js.map 81KB
phaser-navmesh.min.js.map 74KB
phaser2-navmesh.min.js.map 73KB
navmesh.js.map 63KB
navmesh.min.js.map 58KB
README.md 16KB
tiled-navmesh-guide.md 3KB
README.md 645B
README.md 587B
README.md 585B
tiled-final.png 102KB
multiple-following-agents.png 60KB
combined.png 57KB
共 125 条
- 1
- 2
资源评论
李川雨
- 粉丝: 33
- 资源: 4579
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功