Class: Sprite_Picture

Overview

A sprite that show a Game_Picture on the screen

Instance Attribute Summary collapse

Attributes inherited from LiteRGSS::ShaderedSprite

#blendmode, #shader

Attributes inherited from LiteRGSS::Sprite

#__index__, #angle, #bitmap, #height, #mirror, #opacity, #ox, #oy, #src_rect, #viewport, #visible, #width, #x, #y, #z, #zoom, #zoom_x, #zoom_y

Instance Method Summary collapse

Methods inherited from Sprite

#load, #mouse_in?, #set_origin_div, #set_rect, #set_rect_div, #set_z, #simple_mouse_in?, #translate_mouse_coords

Methods inherited from LiteRGSS::Sprite

new, #set_origin, #set_position

Methods inherited from LiteRGSS::Disposable

#disposed?

Constructor Details

#initialize(viewport, picture) ⇒ Sprite_Picture

Initialize a new Sprite_Picture

Parameters:

  • viewport (Viewport)

    the viewport where the sprite will be shown

  • picture (Game_Picture)

    the picture



403
404
# File 'docs/4_Systems_003_Map_Engine.rb', line 403

def initialize(viewport, picture)
end

Instance Attribute Details

#gif_loop_disabledBoolean

Tell if the loop of the gif is disabled or not

Returns:

  • (Boolean)


399
400
401
# File 'docs/4_Systems_003_Map_Engine.rb', line 399

def gif_loop_disabled
  @gif_loop_disabled
end

Instance Method Details

#dispose

Dispose the picture



406
407
# File 'docs/4_Systems_003_Map_Engine.rb', line 406

def dispose
end

#gif_done?Boolean

Tell if the gif animation is done

Returns:

  • (Boolean)


413
414
# File 'docs/4_Systems_003_Map_Engine.rb', line 413

def gif_done?
end

#update

Update the picture sprite display with the information of the current Game_Picture



409
410
# File 'docs/4_Systems_003_Map_Engine.rb', line 409

def update
end