Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Scene_Battle < Scene_Base
- alias kurashi_title_fog_addon start
- def start
- kurashi_title_fog_addon
- create_fog
- end
- def create_fog
- @fog = Plane.new
- @fog.bitmap = Cache.fog(PPVXAce_General_Configs::Fog_Filename)
- @fog.z = 3
- @fog.opacity = PPVXAce_General_Configs::Fog_Opacity
- @fog.bitmap.hue_change(PPVXAce_General_Configs::Fog_Hue)
- end
- def update
- super
- update_fog
- if BattleManager.in_turn?
- process_event
- process_action
- end
- BattleManager.judge_win_loss
- end
- def update_for_wait
- update_fog
- update_basic
- end
- def update_fog
- @fog.ox += PPVXAce_General_Configs::Fog_SpeedX
- @fog.oy += PPVXAce_General_Configs::Fog_SpeedY
- end
- def terminate
- super
- dispose_spriteset
- @fog.bitmap.dispose
- @fog.dispose
- @info_viewport.dispose
- RPG::ME.stop
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement