Commented out some console logs

This commit is contained in:
Gordon Pedersen 2023-07-24 11:47:54 +10:00
parent 3c70ae51cf
commit e78f9073e4
2 changed files with 8 additions and 8 deletions

View file

@ -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

View file

@ -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