I'm looking for a script to change the Window size without changing the Game size. I tink it will be more easy to understand with images.
Now my game looks like this:
Spoiler

And I want it to look like this:
Spoiler

Thanks in advance! :)


class Spriteset_Map
alias vport create_viewports
def create_viewports
vport
x = (Graphics.width - 544)/2
y = (Graphics.height - 416)/2
w = 544
h = 416
size = [x,y,w,h]
@viewport1.rect.set(*size)
@viewport2.rect.set(*size)
@viewport3.rect.set(*size)
end
endGraphics.resize_screen(640, 480)
class Spriteset_Map
alias vport create_viewports
def create_viewports
vport
x = (Graphics.width - 544)/2
y = (Graphics.height - 416)/2
w = 544
h = 416
size = [x,y,w,h]
@viewport1.rect.set(*size)
@viewport2.rect.set(*size)
@viewport3.rect.set(*size)
@viewport1.ox = ((Graphics.width - 544) / 2)
@viewport1.oy = ((Graphics.height - 416) / 2)
end
end
class Game_Map
#--------------------------------------------------------------------------
# * Number of Horizontal Tiles on Screen
#--------------------------------------------------------------------------
def screen_tile_x
544 / 32
end
#--------------------------------------------------------------------------
# * Number of Vertical Tiles on Screen
#--------------------------------------------------------------------------
def screen_tile_y
416 / 32
end
endclass Spriteset_Map
alias vport create_viewports
def create_viewports
vport
x = (Graphics.width - 544)/2
y = (Graphics.height - 416)/2
w = 544
h = 416
size = [x,y,w,h]
@viewport1.rect.set(*size)
@viewport2.rect.set(*size)
@viewport3.rect.set(*size)
@viewport1.ox = ((Graphics.width - 544) / 2)
@viewport1.oy = ((Graphics.height - 416) / 2)
end
end
class Game_Map
#--------------------------------------------------------------------------
# * Number of Horizontal Tiles on Screen
#--------------------------------------------------------------------------
def screen_tile_x
544 / 32
end
#--------------------------------------------------------------------------
# * Number of Vertical Tiles on Screen
#--------------------------------------------------------------------------
def screen_tile_y
416 / 32
end
end$game_map.screen.pictures[index].show(fName, placement, x, y, xZoom, yZoom, opacity, blend)
# fName - Also automatically searches files included in RGSS-RTP.
# File extensions may be omitted.
# placement - [0] Upper Left, [1] Center
# x - X value of image.
# y - Y value of image.
# xZoom - [100; Default] Horizontal scaling of image.
# yZoom - [100; Default] Vertical scaling of image.
# opacity - [255; Default] Opacity of image.
# blend - [0] Normal, [1] Add, [2] SubThis thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.