module RedBird::Demo

SPDX-License-Identifier: MIT

Constants

VERSION

Public Class Methods

run() click to toggle source
# File lib/red_bird/demo.rb, line 14
def self.run
  RedBird::Engine.debug = true
  RedBird::Engine.set_pixel_quantity(256, 240)
  RedBird::Engine.set_screen_resolution(256, 240)

  gb = {
    stage: :main,
    palette: nil
  }
  RedBird::Engine.run(gb) do |global_data|
    case global_data[:stage]
    when :main then
      Demo::Stage::Main.new(global_data)
    when :move_on_tiles then
      Demo::Stage::MoveOnTiles.new(global_data)
    when :resolution then
      Demo::Stage::Resolution.new(global_data)
    end
  end

end