Sha256: 1c46f22f7470f4afebf02299dab3bc705d762b342d98b72ea5b092b1bccfa158

Contents?: true

Size: 211 Bytes

Versions: 6

Compression:

Stored size: 211 Bytes

Contents

class BackgroundLayer < Joybox::Core::Layer

  def on_enter
    background = Sprite.new file_name: 'images/background.png',
    position: [Screen.half_width, Screen.half_height]
    self << background
  end

end

Version data entries

6 entries across 3 versions & 1 rubygems

Version Path
joybox-1.1.1 template/joybox-ios-example-repl/files/app/layers/background_layer.rb
joybox-1.1.1 template/joybox-osx-example-repl/files/app/layers/background_layer.rb
joybox-1.1.0 template/joybox-ios-example-repl/files/app/layers/background_layer.rb
joybox-1.1.0 template/joybox-osx-example-repl/files/app/layers/background_layer.rb
joybox-1.0.0 template/joybox-ios-example-repl/files/app/layers/background_layer.rb
joybox-1.0.0 template/joybox-osx-example-repl/files/app/layers/background_layer.rb