じ☆ve冰风 发表于 2026-7-24 20:55:30

SDJB_GameScreenWithHoles

PluginName: SDJB_GameScreenWithHoles
Author: ShadowDragon





This plugin remove the entire canvas background like the Image above,
no background and no parallax used.

read the helpfile carefully as it require TWO VERY CRUCIAL step that must not be
skipped or it doesn't work.

Spoiler: How it works                Code:       
Requirements
͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞
To ensure the plugin works correctly, you must apply the following changes:
1. Edit index.html
    Set the <body> background to transparent:

    <body style="background-color: rgba(0,0,0,0)">

    If this is not applied, the background will remain black and the plugin
    may not function as intended.

2. Edit package.json
    Add the following properties under the "window" section:

    "transparent": true,
    "frame": false

    Note:
    "transparent" is required for proper rendering.
    "frame" is optional, but setting it to false provides a cleaner appearance.


Introduction
͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞
Allows unpainted tiles to use the desktop background!
This is normally black, but it is removed, so only the floor
is visible while there is nothing else in the background.

While Parallax works as normal, transparency is untested.


How to Use
͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞
While the background is removed, you can use a region to
make tiles transparent, allowing you to see the desktop
background behind them.

This may not work online and may appear white instead of black.
I cannot test that, the site where it is used works differently,
so it only works for desktop deployments.


=== TERMS OF USE ===
Free for Non-Commercial and Commercial use when credit is given.
credit one of the following:
ShadowDragon
ShadowDragonJB


=== WARNING ===
YOU ARE NOT ALLOWED TO REDISTRIBUTE OR SELL IT OR TAKE CODE FOR YOUR OWN.
DO NOT REMOVE THE HEADER.

(require my base plugin (SDJB_Base or SDJB_BaseMVZ (minified version))
leave Feedback and or suggestions.

PS: This is forum specific download only! so there wont be an itch.io download.
Enjoy the plugin.

Untested on mac, linux (and probably wont work on website).


本贴来自国际rpgmaker官方论坛作者:ShadowDragon处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/sdjb_gamescreenwithholes.183297/
页: [1]
查看完整版本: SDJB_GameScreenWithHoles