Module: Fake3D::Sprite3D

Included in:
BattleUI::Sprite3D, UI::Sprite3D
Defined in:
docs/0_Dependencies.rb

Overview

Module to prepend to one of your Sprite class to make them Fake3D able

Instance Method Summary collapse

Instance Method Details

#initialize(viewport)



1564
1565
# File 'docs/0_Dependencies.rb', line 1564

def initialize(viewport)
end

#set_position(x, y, z = nil)

Set the position of the sprite

Parameters:

  • x (Integer)

    x position of the sprite (Warning, 0 is most likely the center of the viewport)

  • y (Integer)

    y position of the sprite (Warning, y still goes to the bottom, 0 is most likely the center of the viewport)

  • z (Numeric) (defaults to: nil)

    z position of the sprite (1 is most likely at scale, 2 is smaller, 0 is illegal)



1574
1575
# File 'docs/0_Dependencies.rb', line 1574

def set_position(x, y, z = nil)
end

#z=(z)

Set the z position of the sprite

Parameters:

  • z (Numeric)


1568
1569
# File 'docs/0_Dependencies.rb', line 1568

def z=(z)
end