设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
楼主: rpg-sheep
打印 上一主题 下一主题

[原创发布] 【Blackroom+Indepth】最强大的地图区域编辑插件MapArea

  [复制链接]

Lv1.梦旅人

梦石
0
星屑
76
在线时间
10 小时
注册时间
2023-5-24
帖子
5
1
发表于 2023-6-9 15:49:22 | 显示全部楼层
本帖最后由 重新起航 于 2023-6-9 15:50 编辑

不知道还有没有人使用这个插件,修改了一下,可以用于MZ
  1. 将// * ShaderTilemap与// * Game_Map之间的代码注释掉,换成下面的就可以用于Mz了,应该,,,没有bug吧。初步测试可以使用了,
  2. // * ShaderTilemap
  3. // ======================================================================
  4. Tilemap.prototype._addSpot = function(startX, startY, x, y) {
  5.     const mx = startX + x;
  6.     const my = startY + y;
  7.     const dx = x * this._tileWidth;
  8.     const dy = y * this._tileHeight;
  9.     const tileId0 = this._readMapData(mx, my, 0);
  10.     const tileId1 = this._readMapData(mx, my, 1);
  11.     const tileId2 = this._readMapData(mx, my, 2);
  12.     const tileId3 = this._readMapData(mx, my, 3);
  13.     const shadowBits = this._readMapData(mx, my, 4);
  14.     const upperTileId1 = this._readMapData(mx, my - 1, 1);

  15.     this._addSpotTile(tileId0, dx, dy);
  16.     this._addSpotTile(tileId1, dx, dy);
  17.     this._addShadow(this._lowerLayer, shadowBits, dx, dy);
  18.     if (this._isTableTile(upperTileId1) && !this._isTableTile(tileId1)) {
  19.         if (!Tilemap.isShadowingTile(tileId0)) {
  20.             this._addTableEdge(this._lowerLayer, upperTileId1, dx, dy);
  21.         }
  22.     }
  23.     if (this._isOverpassPosition(mx, my)) {
  24.         this._addTile(this._upperLayer, tileId2, dx, dy);
  25.         this._addTile(this._upperLayer, tileId3, dx, dy);
  26.     } else {
  27.         this._addSpotTile(tileId2, dx, dy);
  28.         this._addSpotTile(tileId3, dx, dy);
  29.     }
  30. };
  31. // ======================================================================
  32. // * Game_Map
  33. // ======================================================================
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-5-10 07:15

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表