- 注册时间
- 2006-10-22
- 最后登录
- 2006-11-2
⑦老手
- 积分
- 8483
|
class GameWindow < Window_Base
attr_accessor :mainbmp
def initialize
super(-16, -16, 672, 512)
self.contents = Bitmap.new(width - 32, height - 32)
self.mainbmp=Bitmap.new('hello world')
self.contents.blt(0,0,self.mainbmp,self.mainbmp.rect)
end
end
class Gameplay
attr_accessor :gamewindow
def main
gamewindow=GameWindow.new
Graphics.transition(40)
loop do
Graphics.update
Input.update
update
if $scene != self
break
end
end
Graphics.freeze
gamewindow.dispose
end
def update
if Input.trigger?(Input::B)
$game_system.se_play($data_system.cancel_se)
exit
elsif Input.trigger?(Input::C)
tmp=gamewindow.mainbmp
end
end
end
汗......魔兽玩多了,随手就打成了魔兽的jass脚本,上面是rgss脚本,帮帮我 |
|