Class: Plane

Inherits:
Object
  • Object
show all
Includes:
RGSS3::SpriteContainer
Defined in:
lib/rgss3/plane.rb

Constant Summary

Constants included from RGSS3::SpriteContainer

RGSS3::SpriteContainer::BLEND

Instance Attribute Summary

Attributes included from RGSS3::SpriteContainer

#bitmap, #blend_type, #color, #zoom_x, #zoom_y

Attributes included from RGSS3::Container

#opacity, #ox, #oy, #tone, #viewport, #visible, #z

Instance Method Summary collapse

Methods included from RGSS3::SpriteContainer

#initialize

Methods included from RGSS3::Container

#dispose, #disposed?, #initialize, #initialize_copy

Instance Method Details

#drawObject



5
6
7
8
# File 'lib/rgss3/plane.rb', line 5

def draw
  return if !@visible || @opacity == 0 || @bitmap == nil
  @bitmap.gosu_image.draw(-@ox, -@oy, @z, 1, 1, 0xff_ffffff, BLEND[@blend_type])
end