Class: UI::MiningGame::Tool_Hit_Sprite

Inherits:
Tool_Sprite show all
Defined in:
docs/4_Systems_801_Mining_Game.rb

Overview

Class that describes the Tool_Hit_Sprite object

Instance Attribute Summary

Attributes inherited from Tool_Sprite

#tool

Attributes inherited from SpriteSheet

#nb_x, #nb_y, #sx, #sy

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 Tool_Sprite

#add_to_x, #add_to_y, #change_tool, #new_frame, #sub_to_x, #sub_to_y

Methods inherited from SpriteSheet

#bitmap=, #resize, #select

Methods inherited from Sprite

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

Methods inherited from LiteRGSS::Sprite

new, #set_origin, #set_position

Methods inherited from LiteRGSS::Disposable

#dispose, #disposed?

Constructor Details

#initialize(viewport) ⇒ Tool_Hit_Sprite

Create the Tool_Hit_Sprite

Parameters:

  • viewport (Viewport)

    the viewport of the scene



666
667
# File 'docs/4_Systems_801_Mining_Game.rb', line 666

def initialize(viewport)
end

Instance Method Details

#change_image

Set the new image of the sheet



673
674
# File 'docs/4_Systems_801_Mining_Game.rb', line 673

def change_image
end

#number_image_xInteger

Number of images on the same line

Returns:

  • (Integer)


670
671
# File 'docs/4_Systems_801_Mining_Game.rb', line 670

def number_image_x
end