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

#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



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

def initialize(viewport, picture)
end

Instance Attribute Details

#gif_loop_disabled ⇒ Boolean

Tell if the loop of the gif is disabled or not

Returns:

  • (Boolean)


395
396
397
# File 'docs/4_Systems_003_Map_Engine.rb', line 395

def gif_loop_disabled
  @gif_loop_disabled
end

Instance Method Details

#dispose

Dispose the picture



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

def dispose
end

#gif_done? ⇒ Boolean

Tell if the gif animation is done

Returns:

  • (Boolean)


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

def gif_done?
end

#update

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



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

def update
end