| 赞 | 295  | 
 
| VIP | 11 | 
 
| 好人卡 | 74 | 
 
| 积分 | 233 | 
 
| 经验 | 281171 | 
 
| 最后登录 | 2025-11-2 | 
 
| 在线时间 | 9470 小时 | 
 
 
 
 
 
Lv5.捕梦者 (暗夜天使)   只有笨蛋才会看到 
	- 梦石
 - 1 
 
        - 星屑
 - 22294 
 
        - 在线时间
 - 9470 小时
 
        - 注册时间
 - 2012-6-19
 
        - 帖子
 - 7126
 
 
   
 
 | 
	
 本帖最后由 喵呜喵5 于 2014-9-16 20:20 编辑  
 
 
- class Sprite_M5Test < Sprite  
 
 -   def initialize
 
 -     super(nil)
 
 -     self.bitmap = Cache.system("测试图片文件名")    
 
 -     self.visible = false
 
 -   end
 
 -   def 改变显示状态
 
 -     self.visible ^= true
 
 -   end
 
 - end
 
 - class Scene_Map
 
 -   alias 默认的载入处理 start
 
 -   def start
 
 -     默认的载入处理
 
 -     @测试图片 = Sprite_M5Test.new
 
 -   end
 
 -   alias 默认的消退处理 terminate
 
 -   def terminate
 
 -     默认的消退处理
 
 -     @测试图片.bitmap.dispose
 
 -     @测试图片.dispose
 
 -   end
 
 -   alias 默认的调试界面更新处理 update_call_debug
 
 -   def update_call_debug
 
 -     默认的调试界面更新处理
 
 -     @测试图片.改变显示状态 if Input.trigger?(:A)
 
 -   end  
 
 - end
 
  复制代码 |   
 
 
 
 |