Adjustments for red area

This commit is contained in:
Mathew Velasquez 2015-11-23 01:37:54 -05:00
parent 191afb3524
commit 09b5e173c9
4 changed files with 28 additions and 8 deletions

View File

@ -16,9 +16,11 @@ FOOTSTEP_SFX = [
['step_grass', ['step_grass',
'step_tile'], 'step_tile'],
# Red # Red
[], ['step_metal',
'step_metal_light'],
# Red Interior # Red Interior
[], ['step_tile',
'step_wood'],
# Tower # Tower
[], [],
# Tower Start # Tower Start
@ -26,5 +28,13 @@ FOOTSTEP_SFX = [
# Blank # Blank
[], [],
# Blue Factory Interior # Blue Factory Interior
['step_metal'], ['step_metal_light'],
# Red Ground
[],
# Red Factory
[],
# Red Factory Interior
[],
# Red observation deck
['step_metal_light'],
] ]

View File

@ -34,6 +34,10 @@ class SpecialEventData
:machine => SpecialEventData.new( :machine => SpecialEventData.new(
[], [],
[[-1, 0], [0, 0], [1, 0]] [[-1, 0], [0, 0], [1, 0]]
),
:glitch => SpecialEventData.new(
[],
[[0, 0], [0, -1]]
) )
} }
end end

View File

@ -276,15 +276,21 @@ class Game_Map
end end
end end
# Loop searches in order from top of layer # Loop searches in order from top of layer
blank = 0
for i in [2, 1, 0] for i in [2, 1, 0]
# Get tile ID # Get tile ID
tile_id = data[x, y, i] tile_id = data[x, y, i]
# Tile ID acquistion failure # Tile ID acquistion failure
if tile_id == nil return false if tile_id == nil
# impassable
return false # Only handle blank if all three layers are blank
if tile_id < 48 && i > 0
blank += 1
next if blank < 3
end
# If obstacle bit is set # If obstacle bit is set
elsif @passages[tile_id] & bit != 0 if @passages[tile_id] & bit != 0
# impassable # impassable
return false return false
# If obstacle bit is set in all directions # If obstacle bit is set in all directions

View File

@ -332,7 +332,7 @@ class Window_Message < Window_Selectable
@text_pause -= 1 @text_pause -= 1
else else
if @blip >= BLIP_TIME if @blip >= BLIP_TIME
Audio.se_play('Audio/SE/text.wav', 70) unless @text.empty? Audio.se_play('Audio/SE/text.wav') unless @text.empty?
@blip = 0 @blip = 0
else else
@blip += 1 @blip += 1