Project1
标题:
怎么调用dll修改分辨率?
[打印本页]
作者:
延伸の彼岸
时间:
2013-8-23 21:59
标题:
怎么调用dll修改分辨率?
{:2_264:}
作者:
化螺耕
时间:
2013-8-24 09:46
其实用这个脚本也行的
宽度=320
高度=240
游戏ini名=".\\Game.ini"
#============================================================================
val = "\0"*256
gps = Win32API.new('kernel32', 'GetPrivateProfileString',%w(p p p p l p), 'l')
gps.call("Game", "Title", "", val, 256, 游戏ini名)
val.delete!("\0")
title = val
fw = Win32API.new('user32', 'FindWindow', %(p, p), 'i')
hWnd = fw.call("RGSS Player", title)
swp = Win32API.new('user32', 'SetWindowPos', %(l, l, i, i, i, i, i), 'i')
ok = swp.call(hWnd, 0, 0, 0, 宽度, 高度, 2)
class Game_Map
#--------------------------------------------------------------------------
# ● 向下滚动
# distance : 滚动距离
#--------------------------------------------------------------------------
def scroll_down(distance)
@display_y = [@display_y + distance, (self.height - 6.6) * 128].min
end
#--------------------------------------------------------------------------
# ● 向右滚动
# distance : 滚动距离
#--------------------------------------------------------------------------
def scroll_right(distance)
@display_x = [@display_x + distance, (self.width - 10) * 128].min
end
end
class Game_Player < Game_Character
CENTER_X = 144 * 4 # 画面中央的 X 坐标 * 4
CENTER_Y = 104 * 4 # 画面中央的 Y 坐标 * 4
end
复制代码
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1