diff --git a/src/scenes/credit/director.rb b/src/scenes/credit/director.rb index 002731e..9bbd25b 100644 --- a/src/scenes/credit/director.rb +++ b/src/scenes/credit/director.rb @@ -16,6 +16,8 @@ def play draw if $DEBUG @button_sensor.update(ButtonSensor::LEFT_PIN); @button_sensor.update(ButtonSensor::RIGHT_PIN) + else + @button_sensor.update(ButtonSensor::RIGHT_PIN) # 運営操作用のマスターkey end @leng_sensor.update(LengSensor::LEFT_PIN); @leng_sensor.update(LengSensor::RIGHT_PIN) update @@ -31,6 +33,8 @@ def update elsif @leng_sensor.down?(LengSensor::RIGHT_PIN) || @leng_sensor.down?(LengSensor::LEFT_PIN) SceneMgr.move_to(:title) + elsif !$DEBUG && @button_sensor.down?(ButtonSensor::RIGHT_PIN) # 運営操作用のマスターkey + SceneMgr.move_to(:title) end end diff --git a/src/scenes/game/director.rb b/src/scenes/game/director.rb index ec7c8fd..b62f6b1 100644 --- a/src/scenes/game/director.rb +++ b/src/scenes/game/director.rb @@ -100,6 +100,8 @@ def play draw if $DEBUG @button_sensor.update(ButtonSensor::LEFT_PIN); @button_sensor.update(ButtonSensor::RIGHT_PIN) + else + @button_sensor.update(ButtonSensor::RIGHT_PIN) # 運営操作用のマスターkey end @leng_sensor.update(LengSensor::LEFT_PIN); @leng_sensor.update(LengSensor::RIGHT_PIN) @@ -159,6 +161,8 @@ def update if @timer.stop? SceneMgr.move_to(:result) @timer.reset + elsif !$DEBUG && @button_sensor.down?(ButtonSensor::RIGHT_PIN) # 運営操作用のマスターkey + SceneMgr.move_to(:result) end if $DEBUG && @button_sensor.down?(ButtonSensor::RIGHT_PIN) || diff --git a/src/scenes/game/matz.rb b/src/scenes/game/matz.rb index d2c8e7c..c284b72 100644 --- a/src/scenes/game/matz.rb +++ b/src/scenes/game/matz.rb @@ -37,7 +37,7 @@ def receive_present(present) case present.class.status when :ruby SoundMgr.ruby_sound_play - 30 + 20 when :castle SoundMgr.castle_sound_play 10 @@ -49,7 +49,7 @@ def receive_present(present) -20 when :cookie SoundMgr.cookie_sound_play - -100 + -30 end @present_dy = (@@rate_y - present.y) / ((@@rate_x - present.x) / @present_dx) # 移動距離を計算します。 @presents.push(present.dup) diff --git a/src/scenes/result/director.rb b/src/scenes/result/director.rb index ccfbaf0..c8b4f0a 100644 --- a/src/scenes/result/director.rb +++ b/src/scenes/result/director.rb @@ -18,7 +18,10 @@ def play draw if $DEBUG @button_sensor.update(ButtonSensor::LEFT_PIN); @button_sensor.update(ButtonSensor::RIGHT_PIN) + else + @button_sensor.update(ButtonSensor::RIGHT_PIN) # 運営操作用のマスターkey end + @leng_sensor.update(LengSensor::LEFT_PIN); @leng_sensor.update(LengSensor::RIGHT_PIN) update end @@ -32,6 +35,8 @@ def update elsif @leng_sensor.down?(LengSensor::RIGHT_PIN) || @leng_sensor.down?(LengSensor::LEFT_PIN) SceneMgr.move_to(:credit) + elsif !$DEBUG && @button_sensor.down?(ButtonSensor::RIGHT_PIN) # 運営操作用のマスターkey + SceneMgr.move_to(:credit) end end diff --git a/src/scenes/title/director.rb b/src/scenes/title/director.rb index efb1f30..1e93c89 100644 --- a/src/scenes/title/director.rb +++ b/src/scenes/title/director.rb @@ -16,6 +16,8 @@ def play draw if $DEBUG @button_sensor.update(ButtonSensor::LEFT_PIN); @button_sensor.update(ButtonSensor::RIGHT_PIN) + else + @button_sensor.update(ButtonSensor::RIGHT_PIN) # 運営操作用のマスターkey end @leng_sensor.update(LengSensor::LEFT_PIN); @leng_sensor.update(LengSensor::RIGHT_PIN) update @@ -30,6 +32,8 @@ def update elsif @leng_sensor.down?(LengSensor::RIGHT_PIN) || @leng_sensor.down?(LengSensor::LEFT_PIN) SceneMgr.move_to(:game) + elsif !$DEBUG && @button_sensor.down?(ButtonSensor::RIGHT_PIN) # 運営操作用のマスターkey + SceneMgr.move_to(:game) end end