Method: Actor#layer

Defined in:
lib/fantasy/actor.rb

#layerInteger

In which layer the image of the Actor is rendered. Smaller numbers are rendered behind higher numbers.

Default 0.

Examples:

Set layer

actor = Actor.new("image")
actor.layer = -1

Returns:

  • (Integer)

    the actual layer



202
203
204
# File 'lib/fantasy/actor.rb', line 202

def layer
  @layer
end