强大的地图传送式插件~~

我以自带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

GALV_maptravel研究分析(1)的更多相关文章

  1. GALV_maptravel研究分析(2)

    本节地图:Gov's Mansion,Campsite,Yourmansion ++++++++++++++++++++华丽丽的分割线+++++++++++++++++++++++++++++++++ ...

  2. opencv的实用研究--分析轮廓并寻找边界点

    opencv的实用研究--分析轮廓并寻找边界点 ​      轮廓是图像处理中非常常见的.对现实中的图像进行采样.色彩变化.灰度变化之后,能够处理得到的是“轮廓”.它直接地反应你了需要分析对象的边界特 ...

  3. SQL中的Null深入研究分析

    SQL中的Null深入研究分析 虽然熟练掌握SQL的人对于Null不会有什么疑问,但总结得很全的文章还是很难找,看到一篇英文版的, 感觉还不错. Tony Hoare 在1965年发明了 null 引 ...

  4. TCP异常关闭研究分析

    版权声明:本文由谢代斌原创文章,转载请注明出处: 文章原文链接:https://www.qcloud.com/community/article/108 来源:腾云阁 https://www.qclo ...

  5. JVM虚拟机Class类文件研究分析

    前言 为了研究Class文件,先编写一个最简单的代码: package com.courage; public class T0100_ByteCode01 { } 之所以说最简单,是因为这个类里面任 ...

  6. oracle AWR深入研究分析,如何使用

    AWR的前身是statspack,当然现在还在,只不过大家都在使用AWR,因为它方便,简单,直观,形象. AWR是oracle内置工具,安装oracle时已经自动安装完毕,无需额外安装了. SELEC ...

  7. keystone 认证深度研究分析

    一.Keystone Token深度概述 Keystone作为OpenStack项目基础认证模块,目前支持的token类型分别是uuid.pkiz.pki.fernet. 首先,简要叙述一下这四种类型 ...

  8. S5PV210的内存分配研究分析

    S5PV210内存一般会使用SDRAM和DDR2 (DDR SDRAM),SDRAM的uboot启动网络已经有很多资料的,对于DDR2还有有很多疑惑,如果有错误的地方,请大家一定指出,醍醐灌顶,不胜感 ...

  9. 常用移动web开发框架研究分析

    纯粹的总结一下移动web开发框架,移动web开发框架有jQuery Mobile .Sencha Touch等等,他们都来源于web开发,是成熟的框架,jQuery Mobile出自于jQuery家族 ...

随机推荐

  1. Activity的Launch mode详解,A B C D的singleTask模式

    本文参考了此文http://hi.baidu.com/amauri3389/blog/item/a54475c2a4b2f040b219a86a.html 另附 android task与back s ...

  2. 框架源码系列八:Spring源码学习之Spring核心工作原理(很重要)

    目录:一.搞清楚ApplicationContext实例化Bean的过程二.搞清楚这个过程中涉及的核心类三.搞清楚IOC容器提供的扩展点有哪些,学会扩展四.学会IOC容器这里使用的设计模式五.搞清楚不 ...

  3. Canvas组件:画布,可以实现动画操作。

    Module  10 Canvas组件:画布,可以实现动画操作. TextArea:文本域. 在单行文本域中回车会激发ActionEvent. 用CheckBoxGroup实现单选框功能. Java中 ...

  4. Ubuntu 16.04 ROS环境配置

    最近新入职一家公司,是搞智能无人驾驶的,用的操作系统是Ubuntu和ros,之前没接触过ros系统,既然公司用那就必须的学习啊,话不多说先装它一个ros玩玩... 1. Ubuntu 安装 ROS K ...

  5. 更改Nginx网站根目录以及导致的403 forbidden问题解决

    版权声明:本文为博主原创文章,未经博主允许不得转载. 一.更改根目录 Nginx默认网站根目录为/usr/local/nginx/html,要将它改成/home/fuxiao/www   更改方法: ...

  6. npm WARN install Refusing to install vue-router as a dependency of itself

    今天在使用npm安装插件的时候提示如下错误: npm WARN install Refusing to install vue-router as a dependency of itself npm ...

  7. Golang 发送和接收数据公共类

    package RequestCenter import ( "bytes" "io" "net" "runtime" ...

  8. sklearn中随机森林的参数

    一:sklearn中决策树的参数: 1,criterion: ”gini” or “entropy”(default=”gini”)是计算属性的gini(基尼不纯度)还是entropy(信息增益),来 ...

  9. 关于4A网络安全管控平台控件加载失败的解决方法

    最近电脑重装系统后,到公司登录4A管控平台提示"控件加载失败","无效的参数为:Null","点击资源无任何反映"等等问题 别人的电脑用的好 ...

  10. SQL 四大功能DDL/DML/DCL/TCL

    SQL主要分成四部分:(1)数据定义.(SQL DDL)用于定义SQL模式.基本表.视图和索引的创建和撤消操作.(2)数据操纵.(SQL DML)数据操纵分成数据查询和数据更新两类.数据更新又分成插入 ...