module Graphics
@@ori = method("transition")
def self.transition(*args)
StartNowLondingTr.stop
@@ori.call(*args)
end
end
module StartNowLondingTr
def self.start
@start = Thread.new do
@nowLsprite = Sprite.new
@nowLbitmap = Bitmap.new(640,480)
@nowLsprite.bitmap = @nowLbitmap
@nowLsprite.bitmap.fill_rect(0,0,640,480,Color.new(0,0,0,255))
@nowLsprite.x = 0
@nowLsprite.y = 0
@nowLsprite.z = 99999999
@nowLsprite.visible = true
@nowLsprite.bitmap.draw_text(400,420,200,60,"NOW LONDING...")
loop do
sleep 0.001
Graphics.update
end
end
end
def self.stop
@start.exit
@nowLsprite.dispose
@nowLsprite.bitmap.dispose
end
end
class Class
alias ori_new new
def new(*args)
if self.method_defined? :main
StartNowLondingTr.start
@obj = ori_new(*args)
return @obj
else
return ori_new(*args)
end
end
end [LINE]1,#dddddd[/LINE]版务信息:本贴由楼主自主结贴~作者: asperta 时间: 2009-1-17 10:39
在Pictures文件夹里放 背景1 背景2 背景3 三张图片