luz_performer.rb
Method command_line_options
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def command_line_options
OptionParser.new do |opts|
opts.banner = "Usage: luz.rb [options] [project.luz]"
opts.on("--width <width>", Integer, "Resolution width (eg. 800)") do |w|
Method handle_sdl_event
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def handle_sdl_event(event)
case event
# Mouse input
when SDL2::Event::MouseMotion
$engine.on_slider_change(MOUSE_1_X, (event.x / (@width - 1).to_f))