Method: Background#layer

Defined in:
lib/fantasy/background.rb

#layerObject

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

Default -100.

Examples:

Set layer

background = Background.new("image")
background.layer = -50


23
24
25
# File 'lib/fantasy/background.rb', line 23

def layer
  @layer
end