Smart C-Star Pathfinding plugin supports multi-language calls such as key wizard

Source: Internet
Author: User

Lazy people, no technology, time-saving suitable for COM components, like the desert plug-in, key wizard plugin

The pursuit of optimization, efficiency, resources, technical people suitable for static DLLs

Price: January 5 Yuan, 1 years 50 yuan;

The algorithm diagram explains:

Detailed use case: (the plug-in format is similar, different is only the core algorithm) This algorithm is a star algorithm upgrade version, is not a grade of things please look at the map of the picture placed in the same directory with the button BMP folder, 24-bit BMP format picture. (As shown in )
1. Initialize all data of the map first
PLUGIN.LY_BSTAR.A ("Map 1", "Month card number")//MAP 1 initialization
plugin.dl_cstar2.a "Map\1.bmp", "svkn2qmvzz3jmbng20180305123123"
2. Read the current coordinates of a person from memory
People current coordinates x= memory X
Character current coordinates y= memory y
3. Dynamically figure out the next moving coordinates of the character
ENDXY =plugin.dl_cstar2.findpath (figure current coordinates x, people current coordinates y, end coordinates x, end coordinates y, distance from the obstacle, number of pixels from the characters click, Month card number)
Zou=split (ENDXY, ",", -1,1)
Tpx=zou (0)//dynamically remove the x-coordinate of the positioning point
Tpy=zou (1)//dynamically remove the y-coordinate of the positioning point
tx=121+ (TPX-PX) *10//converted to screen coordinates
ty=222-(tpy-py) *10//converted to screen coordinates
4. Background mouse click
kpress hh,tx,ty//Background Mouse click
5. Free up memory when you arrive at your destination
If you arrive at your destination then
Freeing memory
Release memory when plugin.dl_cstar2.lyfree//is exhausted
Video Demo plug-ins: com and static DLLs 2 easy to use various language calls for beginners, lazy people recommend using COM's automatic release plug-in for the veteran, diligent people recommend the use of static DLLs manually release the memory resource version plug-in

Network Disk Download

Link: Https://pan.baidu.com/s/1U-gkMsvjxvIHAI100wzUZQ Password: 4yuj

Smart C-Star Pathfinding plugin supports multi-language calls such as key wizard

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.