改变图块尺寸 您所在的位置:网站首页 rpgmaker修改数据 改变图块尺寸

改变图块尺寸

#改变图块尺寸| 来源: 网络整理| 查看: 265

改变瓷砖尺寸

创建/使用图块尺寸比48x48

更大或更小的一个MV的游戏

如何使用

添加到你的插件文件夹(文件名应changetilesize。JS)。

设置瓷砖大小的参数,无论你想你的网格大小为(前32)。

如果你想在你的地图编辑器编辑,复制你的IMG /素材文件夹设置背景图像的文件夹名称的新文件夹的名字记得包括/最后。然后在原IMG /素材文件夹,调整您的图像所以他们匹配一个48x48的平铺尺寸。

如果你使用视差图和想在编辑器中编辑您的地图,复制你的IMG /视差/文件夹并设置视差图像的文件夹名称的新文件夹的名字记得包括/最后。然后在原IMG /视差调整您的图像的文件夹,所以他们匹配一个48x48的平铺尺寸。

新创建的文件夹就是用来玩游戏的时候,应该在正确的尺寸包含你的素材/视差。正本只打算用于编辑,和大小会降低图形质量,但它应该足以让你和你的地图和活动的工作。当你建立你的游戏的游戏,这些文件应该被删除。

插件JS

//=============================================================================

// Change Tile Size

// by Shaz

// Last Update: 2015.10.21

//=============================================================================

 

/*:

 * @plugindesc Allows maps based on a grid size other than 48x48

 * @author Shaz

 *

 * @param Tile Size

 * @desc Size of tiles (pixels)

 * @default 48

 *

 * @param Tileset Image Folder

 * @desc Folder where the in-game tilesets are kept

 * @default img/tilesets/

 *

 * @param Parallax Image Folder

 * @desc Folder where the in-game parallaxes are kept

 * @default img/parallaxes/

 *

 * @help This plugin does not provide plugin commands.

 *

 * To use the map editor with tiles of a size other than 48x48 in your project,

 * have two folders for tileset images.  The folder named in the plugin

 * parameters is for original, high-quality, final-sized tiles.  The

 * original folder, img/tilesets/ can contain a duplicate copy of each

 * tileset, shrunk or enlarged to 48x48 pixels per tile.  Quality in the

 * editor may be poorer, but the original tiles will be used in the game.

 * The img/tilesets folder can be cleared prior to distribution.

 *

 * The same applies to the img/parallaxes folder if using a parallax map

 * with a grid size other than 48x48.

 *

 */

 

(function() {

 

  var parameters = PluginManager.parameters('ChangeTileSize');

  var tileSize = parseInt(parameters['Tile Size'] || 48);

  var tilesetsFolder = String(parameters['Tileset Image Folder'] || 'img/tilesets/');

  var parallaxesFolder = String(parameters['Parallax Image Folder'] || 'img/parallaxes/');

 

  ImageManager.loadTileset = function(filename, hue) {

    return this.loadBitmap(tilesetsFolder, filename, hue, false);

  };

 

  ImageManager.loadParallax = function(filename, hue) {

      return this.loadBitmap(parallaxesFolder, filename, hue, true);

  };

 

  Game_Map.prototype.tileWidth = function() {

    return tileSize;

  };

 

  Game_Map.prototype.tileHeight = function() {

    return tileSize;

  };

 

  Game_Vehicle.prototype.maxAltitude = function() {

    return tileSize;

  };

 

})();



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有