加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员  
 
x
 
def make_animation_sprites     @ani_sprites = []     if @use_sprite && !@@ani_spr_checker.include?(@animation)       16.times do         sprite = ::Sprite.new(viewport)         sprite.visible = false         @ani_sprites.push(sprite)       end       if @animation.position == 3         @@ani_spr_checker.push(@animation)       end     end     @ani_duplicated = @@ani_checker.include?(@animation)     if !@ani_duplicated && @animation.position == 3       @@ani_checker.push(@animation)     end   end 
 
 def make_animation_sprites  
    @ani_sprites = []  
    if @use_sprite && !@@ani_spr_checker.include?(@animation)  
      16.times do  
        sprite = ::Sprite.new(viewport)  
        sprite.visible = false  
        @ani_sprites.push(sprite)  
      end  
      if @animation.position == 3  
        @@ani_spr_checker.push(@animation)  
      end  
    end  
    @ani_duplicated = @@ani_checker.include?(@animation)  
    if !@ani_duplicated && @animation.position == 3  
      @@ani_checker.push(@animation)  
    end  
  end  
 
  
 
就是在游戏内看见了这样一个方法 然后里面用到了::Sprite.new  Sprite.new 我是知道啦, 
但是:: 这两个冒号是什么意思? |