diff --git a/🕹️cube-tube/app/scenes/main_menu.rb b/🕹️cube-tube/app/scenes/main_menu.rb index fad3c21..39760e6 100644 --- a/🕹️cube-tube/app/scenes/main_menu.rb +++ b/🕹️cube-tube/app/scenes/main_menu.rb @@ -36,7 +36,7 @@ class MainMenu < MenuScene next_sec = random(20..50) @next_announcement = args.state.tick_count + (next_sec * 60) sound = :"ambient#{random(1..6)}" - puts sound, Sound.for(sound).input + # puts sound, Sound.for(sound).input Sound.play(args, sound) end diff --git a/🕹️cube-tube/app/util/scene.rb b/🕹️cube-tube/app/util/scene.rb index 4bd278e..afc7818 100644 --- a/🕹️cube-tube/app/util/scene.rb +++ b/🕹️cube-tube/app/util/scene.rb @@ -23,12 +23,12 @@ module Scene # if `scene` is not a `SceneInstance`, it's probably a symbol representing # the scene we're switching to, so go get it. the_scene = scene.is_a?(SceneInstance) ? scene : SCENES[scene].new(args) - puts '---' - puts 'switching to' - puts scene unless scene.is_a?(SceneInstance) - puts SCENES[scene] unless scene.is_a?(SceneInstance) - puts the_scene - puts '---' + # puts '---' + # puts 'switching to' + # puts scene unless scene.is_a?(SceneInstance) + # puts SCENES[scene] unless scene.is_a?(SceneInstance) + # puts the_scene + # puts '---' # if the stack is empty (e.g. we just cleared it), then push this scene args.state.scene_stack.push(the_scene) if args.state.scene_stack.empty? @@ -56,7 +56,7 @@ module Scene scene = args.state.scene_stack.last scene = scene._?(default(args)) reset = scene.reset_on_pop if reset.nil? - puts reset, scene, scene.reset_on_pop + # puts reset, scene, scene.reset_on_pop switch(args, scene, reset: reset, push_or_pop: true) end