I have recently bought both the RPG Maker MV and discovered that the Time Fantasy graphics I bought a while ago have MV graphics included in them as well. They are gorgeous and I'd love to use them, but they are upscaled RPG Maker Ace graphics and clash hard with the look of MV's menu screens. As the Time Fantasy MV graphics are upscaled anyway, my idea was:
1. Increase the game resolution to show more of the map and let the Time Fantasy graphics look a bit sharper and less pixelated. For example make the game resolution 1044x832.
2. Draw the window layer of the menu on a canvas of smaller size, like the 816x624. Then strech/scale that canvas to the actual screen size to make it look more pixelated. I'm not sure if it needs to be a smaller canvas - I just want to draw the whole menu on a smaller something and then scale this thing up.
Step one was easy. Step two I struggle with. I found the method WindowLayer.prototype.renderCanvas which looked promising, but changing it in a way I thought made sense had no effect. This is the piece of code I tried:
So - how do I do this? I don't need a complete answer, even a few hints to point me in the right direction would help. I appreciate any help, really. I want a solution in code, not a plugin. But if you do know a plugin that does this - tell me anyway, then I can learn from their code. 🙂
1. Increase the game resolution to show more of the map and let the Time Fantasy graphics look a bit sharper and less pixelated. For example make the game resolution 1044x832.
2. Draw the window layer of the menu on a canvas of smaller size, like the 816x624. Then strech/scale that canvas to the actual screen size to make it look more pixelated. I'm not sure if it needs to be a smaller canvas - I just want to draw the whole menu on a smaller something and then scale this thing up.
Step one was easy. Step two I struggle with. I found the method WindowLayer.prototype.renderCanvas which looked promising, but changing it in a way I thought made sense had no effect. This is the piece of code I tried:
JavaScript:
const _menuWidth = 816;
const _menuHeight = 624;
const alias_renderCanvas = WindowLayer.prototype.renderCanvas
WindowLayer.prototype.renderCanvas = function(renderer) {
let origWidth = Graphics.width;
let origHeight = Graphics.height;
Graphics.width = menuWidth;
Graphics.height = menuHeight;
alias_renderCanvas.call(this, renderer);
Graphics.width = origWidth;
Graphics.height = origHeight;
};
So - how do I do this? I don't need a complete answer, even a few hints to point me in the right direction would help. I appreciate any help, really. I want a solution in code, not a plugin. But if you do know a plugin that does this - tell me anyway, then I can learn from their code. 🙂