GALV_maptravel研究分析(1)
强大的地图传送式插件~~
我以自带demo进行分析,本篇地图Init setting map
1.----------------------------------
实例 创建地图
Galv.MAPT.createMap(0,"map3",
[["bg1",0.4,0.6,255],["bg2",-0.5,-0.3,160]],
[["fg1",0.2,-0.2,60]]
);
语法
Galv.MAPT.createMap(id,"mapImage",[[bg],[bg]],[[fg],[fg]]);
INFO:
id = a unique number to identify the map you created 创建的地图编号
"mapImage" = the name of the map graphic to use from /img/maptravel/ 背景图名称(注意路径)
this image will determine the size of your map in the scene 此图片会影响你的地图尺寸
[bg] = an array to set up a background graphic behind the map image 一个数组,用于在地图图像后面设置背景图形
You can have as many bg arrays as desired each should have: 可以设置多个
["bgimage",xmove,ymove,opacity]
[fg] = works the same as bg arrays but instead for foreground images 原理与bg相同,但用于代替前景图
["fgimage",xmove,ymove,opacity]
注意,这里是两个大数组,内包含小数组
+++++++++++++++++++++++++++++++++华丽分割线+++++++++++++++++++++++++++++++++++++++++++++++++++
2.-----------------------------------
实例
Galv.MAPT.setLocation(0,"Gov's Mansion","loc_mansion",490,160,1,8,11,"This is the Governor's Mansion|It's just a test map with no actual mansion here");
Galv.MAPT.setLocation(0,"Your Mansion","loc_mansion",620,440,3,8,11,"This is your 'mansion' but you lost the key!|You can't get in!");
Galv.MAPT.setLocation(0,"Campsite","loc_tent",1240,300,4,8,11,"I think it's a tent. It looks like a tent|Yeah it's a tent.",1);
语法
Galv.MAPT.setLocation(id,"name","image",mx,my,tmid,tx,ty,"desc",f);
INFO:
id = the unique number identifying the map you created above 上级地图,上级地图!的ID,或者说包含地图
"name" = the name of the location (also used to reference it)
"image" = the name of the location graphic to use from /img/maptravel/ 显示在大地图上的图标
this graphic requires 3 rows in the spritesheet for:
top = normal, middle = active, bottom = disabled
mx = the x postion on your map graphic for the location
my = the y postion on your map graphic for the location
tmid = transfer map id - the in-game map id to transfer to 跳转目标地图的ID
tx = the in-game map x co-ordinate to transfer to 跳转后的的位置
ty = the in-game map y co-ordinate to transfer to
"desc" = a short description displayed when location is selected. 下方描述
Use the | symbol to specify a new line.
f = frames of animation in your location image. Don't include
this attribute to use the plugin setting default frames 动画针
Note that you can use this setLocation to overwrite a previously set one
using the same name if you want to change it to something else.
In addition to locations, you can add 'objects' that work in a similar
way but only have one row of graphics in the spritesheet and will not
appear in the location list.
+++++++++++++++++++++++++++++++++华丽分割线+++++++++++++++++++++++++++++++++++++++++++++++++++
3-----------------------------------
实例
Galv.MAPT.enableLocation(0,"Your Mansion",false);
语法
Galv.MAPT.enableLocation(id,"name",s); // s can be true or false to
// set the location "name" in the
// map id to enabled or disabled
转载于:https://www.cnblogs.com/empist/p/10202324.html
GALV_maptravel研究分析(1)相关推荐
- GALV_maptravel研究分析(2)
本节地图:Gov's Mansion,Campsite,Yourmansion ++++++++++++++++++++华丽丽的分割线+++++++++++++++++++++++++++++++++ ...
- 表格全屏显示_2020-2026年中国手机显示屏市场现状研究分析与发展前景预测报告...
2020-2026年中国手机显示屏市场现状研究分析与发展前景预测报告 报告编号:1295379 在线阅读:2020-2026年中国手机显示屏市场现状研究分析与发展前景预测报告_集成电路_中国市场调研在 ...
- 中国煤炭工业节能减排现状研究分析及市场前景预测报告2022-2028年版
中国煤炭工业节能减排现状研究分析及市场前景预测报告2022-2028年版 [报告目录]: 第一章 2018-2021年煤炭行业节能减排的宏观环境分析 1.1 经济环境 1.1.1 国民经 ...
- 中国聚氨酯胶粘剂行业现状研究分析及市场前景预测报告(2022年)
中国聚氨酯胶粘剂行业现状研究分析及市场前景预测报告(2022年) 第一章 2021年中国胶粘剂行业发展形势分析 第一节 中国胶粘剂行业二十年回顾 第二节 2021年中国胶粘剂产业发展综述 一.我国 ...
- 中国生物质锅炉行业全景调研与投资前景研究分析报告2021-2027年
中国生物质锅炉行业全景调研与投资前景研究分析报告2021-2027年 ***************************************************************** ...
- 串口转以太网服务器市场现状研究分析与发展前景预测报告
2022-2028中国串口转以太网服务器市场现状研究分析与发展前景预测报告 串口转以太网服务器现状及未来发展趋势,侧重分析在中国市场扮演重要角色的企业,重点呈现这些企业在中国市场的串口转以太网服务器收 ...
- 贸易合规服务市场现状研究分析报告 -
辰宇信息咨询市场调研公司最近发布-<2022-2028中国贸易合规服务市场现状研究分析与发展前景预测报告 > 内容摘要 本文研究中国市场贸易合规服务现状及未来发展趋势,侧重分析在中国市场扮 ...
- 农业纺织品市场现状研究分析与发展前景预测报告
2022-2028中国农业纺织品市场现状研究分析与发展前景预测报告 2021年中国农业纺织品市场销售收入达到了 万元,预计2028年可以达到 万元,2022-2028期间年复合增长率(CAGR)为 % ...
- 云安全软件市场现状研究分析报告 -
辰宇信息咨询市场调研公司最近发布-<2022-2028中国云安全软件市场现状研究分析与发展前景预测报告 > 内容摘要 本文研究中国市场云安全软件现状及未来发展趋势,侧重分析在中国市场扮演重 ...
最新文章
- ffmpeg播发器(H265)
- 论文速递:智能作为信息处理系统
- Apache 下更改 DocumentRoot 和新建虚拟目录
- php面向对象公共类,PHP面向对象(一):类与类的实例化
- 返回指针_C语言面试中的问题指针和引用的使用场景?
- 无法从套接字中获取更多数据_数据科学中应引起更多关注的一个组成部分
- 新自然指数出炉,哪些高校表现突出?
- C/C++进程文件锁 之 fcntl函数的用法总结(非阻塞O_NONBLOCK)
- demo 网络运维_【运维面试】面试官:你们公司的docker主要用来做啥?
- matlab 排序 cell,MATLAB中对cell数组排序
- 数据科学学习之统计实验的设计、检验与分析
- ubuntu下gstreamer解码器
- linux下firefox浏览器的flash版本过低解决方案
- 计算机无纸化考试官网,我校《计算机与互联网》课程无纸化考试取得圆满成功...
- 照片的35x45,300dpi怎么弄
- dex2jiar在压缩classes.dex的时候出现的问题
- Python中用fabric库来远程连接服务器
- c语言用位运算将一个数清零,C语言学习笔记_位运算
- CDH5(CDH 5.16.1)安装
- Linux 快速上手(基于Java开发)