Class: SDC::Sprite
- Inherits:
- 
      Object
      
        - Object
- SDC::Sprite
 
- Defined in:
- engine_docs/automatic_doc_Sprite.rb,
 engine_docs/automatic_doc_Sprite.rb
Overview
A sprite class to serve as a wrapper for linked textures with more properties
Instance Attribute Summary collapse
- 
  
    
      #color  ⇒ Color 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Color hue of the sprite. 
- 
  
    
      #origin  ⇒ Coordinates 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Origin vector of the sprite. 
- 
  
    
      #position  ⇒ Coordinates 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Position of the sprite. 
- 
  
    
      #rotation  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Rotation angle of the sprite in degrees. 
- 
  
    
      #scale  ⇒ Coordinates 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Scale vector of the sprite. 
- 
  
    
      #texture_rect  ⇒ IntRect 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Texture rectangle of the sprite. 
Instance Method Summary collapse
- 
  
    
      #initialize  ⇒ Sprite 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    Creates an empty sprite object. 
- 
  
    
      #link_texture(texture)  ⇒ true 
    
    
  
  
  
  
  
  
  
  
  
    Links a texture to this sprite. 
- 
  
    
      #move(difference)  ⇒ nil 
    
    
  
  
  
  
  
  
  
  
  
    Moves the sprite by the given difference. 
Constructor Details
#initialize ⇒ Sprite
Creates an empty sprite object
|  | # File 'engine_docs/automatic_doc_Sprite.rb', line 9
 | 
Instance Attribute Details
#origin ⇒ Coordinates
Origin vector of the sprite
|  | # File 'engine_docs/automatic_doc_Sprite.rb', line 42
 | 
#position ⇒ Coordinates
Position of the sprite
|  | # File 'engine_docs/automatic_doc_Sprite.rb', line 20
 | 
#rotation ⇒ Float
Rotation angle of the sprite in degrees
|  | # File 'engine_docs/automatic_doc_Sprite.rb', line 38
 | 
#scale ⇒ Coordinates
Scale vector of the sprite
|  | # File 'engine_docs/automatic_doc_Sprite.rb', line 24
 | 
#texture_rect ⇒ IntRect
Texture rectangle of the sprite
|  | # File 'engine_docs/automatic_doc_Sprite.rb', line 28
 | 
Instance Method Details
#link_texture(texture) ⇒ true
Links a texture to this sprite
|  | # File 'engine_docs/automatic_doc_Sprite.rb', line 14
 | 
#move(difference) ⇒ nil
Moves the sprite by the given difference
|  | # File 'engine_docs/automatic_doc_Sprite.rb', line 32
 |