Sha256: 025817ac0995e2dd6e5b8b8d5f0d4f947665a227103b97b0672936a5a7565c6f

Contents?: true

Size: 252 Bytes

Versions: 3

Compression:

Stored size: 252 Bytes

Contents

class Cocos2DLayer < Joybox::Core::Layer

  scene

  def on_enter
    
    title = Label.new text: 'Hello World',
                      font_size: 64,
                      position: [Screen.half_width, Screen.half_height]

    self << title
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
joybox-0.0.5 app/layers/cocos2d_layer.rb
joybox-0.0.4 app/layers/cocos2d_layer.rb
joybox-0.0.3 app/layers/cocos2d_layer.rb