GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - chenquanjun/Cocos2dx-AStarUsingTileMap: TileMap And A-Star on cocos2dx 3.0 beta2

BranchesTags
Open more actions menu

Latest commit

 

History

27 Commits
27 Commits

Folders and files

NameName
Last commit message
Last commit date
Classes
Classes
 
 
Resources
Resources
 
 
cocos2d
cocos2d
 
 
proj.android
proj.android
 
 
proj.ios_mac
proj.ios_mac
 
 
proj.linux
proj.linux
 
 
proj.win32
proj.win32
 
 
.DS_Store
.DS_Store
 
 
.gitignore
.gitignore
 
 
CMakeLists.txt
CMakeLists.txt
 
 
README.md
README.md
 
 

Repository files navigation

Cocos2dx-TileMapPlusAStar

cocos2dx 3.0 beta2 tileMap And A Star

read tileMap info by "tmx" file and create map data. User A-star to create path which used by sprite to walk to a certain position

demo shows

1、Sprite find path automatically.

2、touch an available place and sprite walk to target position.

3、move the map and auto fix position

传入地图创建MapInfo

tmx文件读取完相关信息后即释放

tmx文件暂时是写死读取的格式,

layer用background字段,object用object字段,object里面的精灵用objectid标记类型,类型的枚举见MapGeneral.h

通过传入开始和结束ID获得路径

1、第一次开始寻路算法,生成路径后将路径与相反路径保存下来,以后直接调用;

2、暂时只设计了MapInfoType::Block是不可走

About

TileMap And A-Star on cocos2dx 3.0 beta2

Resources

Readme
Activity

Stars

2 stars

Watchers

2 watching

Forks

5 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.