Показано с 1 по 10 из 12

Тема: Yanfly Engine Plugins

Комбинированный просмотр

Предыдущее сообщение Предыдущее сообщение   Следующее сообщение Следующее сообщение
  1. #1
    Хранитель Аватар для Темный
    Информация о пользователе
    Регистрация
    13.05.2011
    Сообщений
    2,449
    Записей в дневнике
    20
    Репутация: 50 Добавить или отнять репутацию

    По умолчанию

    Вот хочется спросить у тех кто там кричал "про 21 век , про маленькое разрешение нового мейкера" Вы вот это видели?
    Спойлер модуль для установки разрешения экрана игры:
    Код:
    //=============================================================================
    // Yanfly Engine Plugins - Screen Resolution
    // ScreenResolution.js
    // Version: 1.00
    //=============================================================================
    
    var Imported = Imported || {};
    Imported.ScreenResolution = true;
    
    var Yanfly = Yanfly || {};
    Yanfly.ScrRes = Yanfly.ScrRes || {};
    
    //=============================================================================
     /*:
     * @plugindesc v1.00 Change your game's screen resolution to your liking!
     * @author Yanfly Engine Plugins
     *
     * @param Screen Width
     * @desc Adjusts the width of the screen.                           .
     * Default: 816
     * @default 816
     *
     * @param Screen Height
     * @desc Adjusts the height of the screen.                          .
     * Default: 624
     * @default 624
     *
     * @help
     * Adjust the parameters to change the size of how you want your game's
     * screen resolution to appear.
     */
    //=============================================================================
    
    Yanfly.Parameters = PluginManager.parameters('ScreenResolution');
    
    //=============================================================================
    // Scene_Manager
    //=============================================================================
    
    SceneManager._screenWidth  = Number(Yanfly.Parameters['Screen Width'] || 816);
    SceneManager._screenHeight = Number(Yanfly.Parameters['Screen Height'] || 624);
    SceneManager._boxWidth     = Number(Yanfly.Parameters['Screen Width'] || 816);
    SceneManager._boxHeight    = Number(Yanfly.Parameters['Screen Height'] || 624);
    
    Yanfly.ScrRes.SceneManager_run = SceneManager.run;
    SceneManager.run = function(sceneClass) {
        Yanfly.ScrRes.SceneManager_run.call(this, sceneClass);
        if (Utils.isMobileDevice()) return;
        if (Utils.isMobileSafari()) return;
        if (Utils.isAndroidChrome()) return;
    		var resizeWidth = Graphics.boxWidth - window.innerWidth;
    		var resizeHeight = Graphics.boxHeight - window.innerHeight;
    		window.moveBy(-1 * resizeWidth / 2, -1 * resizeHeight / 2);
    		window.resizeBy(resizeWidth, resizeHeight);
    };
    
    //=============================================================================
    // End of File
    //=============================================================================


    Я сейчас сделал разрешение 1440Х900 это нормальный режим моего монитора.
    так вот не каких тормозов все бегает и прыгает!



  2. #2
    Местный Аватар для RastaManGames
    Информация о пользователе
    Регистрация
    19.06.2013
    Адрес
    Сибирь, Красноярск
    Сообщений
    147
    Репутация: 4 Добавить или отнять репутацию

    По умолчанию

    Цитата Сообщение от Темный Посмотреть сообщение
    Вот хочется спросить у тех кто там кричал "про 21 век , про маленькое разрешение нового мейкера" Вы вот это видели?
    Спойлер модуль для установки разрешения экрана игры:
    Код:
    //=============================================================================
    // Yanfly Engine Plugins - Screen Resolution
    // ScreenResolution.js
    // Version: 1.00
    //=============================================================================
    
    var Imported = Imported || {};
    Imported.ScreenResolution = true;
    
    var Yanfly = Yanfly || {};
    Yanfly.ScrRes = Yanfly.ScrRes || {};
    
    //=============================================================================
     /*:
     * @plugindesc v1.00 Change your game's screen resolution to your liking!
     * @author Yanfly Engine Plugins
     *
     * @param Screen Width
     * @desc Adjusts the width of the screen.                           .
     * Default: 816
     * @default 816
     *
     * @param Screen Height
     * @desc Adjusts the height of the screen.                          .
     * Default: 624
     * @default 624
     *
     * @help
     * Adjust the parameters to change the size of how you want your game's
     * screen resolution to appear.
     */
    //=============================================================================
    
    Yanfly.Parameters = PluginManager.parameters('ScreenResolution');
    
    //=============================================================================
    // Scene_Manager
    //=============================================================================
    
    SceneManager._screenWidth  = Number(Yanfly.Parameters['Screen Width'] || 816);
    SceneManager._screenHeight = Number(Yanfly.Parameters['Screen Height'] || 624);
    SceneManager._boxWidth     = Number(Yanfly.Parameters['Screen Width'] || 816);
    SceneManager._boxHeight    = Number(Yanfly.Parameters['Screen Height'] || 624);
    
    Yanfly.ScrRes.SceneManager_run = SceneManager.run;
    SceneManager.run = function(sceneClass) {
        Yanfly.ScrRes.SceneManager_run.call(this, sceneClass);
        if (Utils.isMobileDevice()) return;
        if (Utils.isMobileSafari()) return;
        if (Utils.isAndroidChrome()) return;
    		var resizeWidth = Graphics.boxWidth - window.innerWidth;
    		var resizeHeight = Graphics.boxHeight - window.innerHeight;
    		window.moveBy(-1 * resizeWidth / 2, -1 * resizeHeight / 2);
    		window.resizeBy(resizeWidth, resizeHeight);
    };
    
    //=============================================================================
    // End of File
    //=============================================================================


    Я сейчас сделал разрешение 1440Х900 это нормальный режим моего монитора.
    так вот не каких тормозов все бегает и прыгает!
    Но окно сообщения длиннющее и меню с персонажами огромное. Можно было бы как-то фиксировать размер и положение окон меню и сообщения...

Информация о теме

Пользователи, просматривающие эту тему

Эту тему просматривают: 1 (пользователей: 0 , гостей: 1)

Социальные закладки

Социальные закладки

Ваши права

  • Вы не можете создавать новые темы
  • Вы не можете отвечать в темах
  • Вы не можете прикреплять вложения
  • Вы не можете редактировать свои сообщения
  •  
Yanfly Engine Plugins