赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 13535 |
最后登录 | 2019-9-10 |
在线时间 | 3 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 55
- 在线时间
- 3 小时
- 注册时间
- 2007-3-22
- 帖子
- 505
|
以下引用雪风于2008-3-3 0:06:41的发言:
#--------------------------------------------------------------------------
# ● 生成战斗背景位图
#--------------------------------------------------------------------------
def create_battleback
case $game_variables[5] #变量5 战斗远景
when 1
bitmap = Bitmap.new("Graphics/Parallaxes/StarlitSky")
when 2
bitmap = Bitmap.new("Graphics/Parallaxes/CloudySky")
else
source = $game_temp.background_bitmap
bitmap = Bitmap.new(640, 480)
bitmap.stretch_blt(bitmap.rect, source, source.rect)
end
@battleback_sprite = Sprite.new(@viewport1)
@battleback_sprite.bitmap = bitmap
@battleback_sprite.tone = Tone.new(0,0,0,255)
@battleback_sprite.x = 0
@battleback_sprite.y = 0
end
#--------------------------------------------------------------------------
# ● 生成战斗场所活动块
#--------------------------------------------------------------------------
def create_battlefloor
@battlefloor_sprite = Sprite.new(@viewport1)
case $game_variables[6] #变量6 战斗背景
when 1
bitmap = Bitmap.new("Graphics/Battlebacks/Battlebacks_001")
when 2
bitmap = Bitmap.new("Graphics/Battlebacks/Battlebacks_002")
when 3
bitmap = Bitmap.new("Graphics/Battlebacks/Battlebacks_003")
when 4
bitmap = Bitmap.new("Graphics/Battlebacks/Battlebacks_004")
when 5
bitmap = Bitmap.new("Graphics/Battlebacks/Battlebacks_005")
when 6
bitmap = Bitmap.new("Graphics/Battlebacks/Battlebacks_006")
when 7
bitmap = Bitmap.new("Graphics/Battlebacks/Battlebacks_007")
when 8
bitmap = Bitmap.new("Graphics/Battlebacks/Battlebacks_008")
when 9
bitmap = Bitmap.new("Graphics/Battlebacks/Battlebacks_009")
when 10
bitmap = Bitmap.new("Graphics/Battlebacks/Battlebacks_010")
else
bitmap = Bitmap.new("Graphics/Battlebacks/Battlebacks_001")
end
@battlefloor_sprite.bitmap = bitmap
@battlefloor_sprite.x = 0
@battlefloor_sprite.y = 0
@battlefloor_sprite.z = 1
@battlefloor_sprite.opacity = 255
end
[本贴由作者于 2008-3-3 0:17:02 最后编辑]
这段加在哪?MAIN前?不是吧? |
|