Sha256: cee060e7892f7893648ae4bd29ac683c335b38a3120fca12af8ea2e541c314b3
Contents?: true
Size: 542 Bytes
Versions: 1
Compression:
Stored size: 542 Bytes
Contents
# Each view gets drawn every single frame. Have little to no logic in here. # Never EVER call Entity#draw directly. The Entity's renderer will take care of that for us. @logo.position x: @window.position.center.x, y: @logo.height + 10 # Or - @logo.position = { x: @window.position.center.x, y: @logo.height + 10 } @main_menu_list_items.each_with_index do |main_menu_list_item, index| main_menu_list_item.position.center_at x: @window.position.center.x main_menu_list_item.position.y = (index + 1) * @main_menu_list_item.size.height end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
game-0.0.1 | examples/super_ruby_bros/app/views/main_menu/show.rb |