This commit is contained in:
CatWindow 2026-08-20 16:43:34 +03:00
parent f8b2b3e6fa
commit 9e7c22f2b6
4 changed files with 22 additions and 49 deletions

View file

@ -70,15 +70,15 @@ class FastTravel
:quarry => tr("lookout point"),
},
{
:entrance => ZoneLocations.new(-81, 22, -4, 3, :docks, :outpost, nil, nil),
:outpost => ZoneLocations.new(-52, 42, 6, -3, nil, :cliffs, nil, :entrance),
:cliffs => ZoneLocations.new(4, -3, 21, 38, :factory, :quarry, nil, :outpost),
:mineshaft => ZoneLocations.new(88, -3, 5, 0, nil, nil, nil, :quarry),
:factory => ZoneLocations.new(15, -42, 13, 2, nil, nil, :cliffs, :dorms),
:dorms => ZoneLocations.new(-46, -49, 20, 4, nil, :factory, nil, :swamp),
:swamp => ZoneLocations.new(-98, -45, 10, 7, nil, :dorms, :docks, nil),
:docks => ZoneLocations.new(-82, -9, -4, -2, :swamp, nil, :entrance, nil),
:quarry => ZoneLocations.new(52, -4, 17, -3, nil, :mineshaft, nil, :cliffs),
:entrance => ZoneLocations.new(-81, 22, -4, 3, :docks, :outpost, nil, nil),
:outpost => ZoneLocations.new(-52, 42, 6, -3, nil, :cliffs, nil, :entrance),
:cliffs => ZoneLocations.new( 4, -3, 21, 38, :factory, :quarry, nil, :outpost),
:mineshaft => ZoneLocations.new( 88, -3, 5, 0, nil, nil, nil, :quarry),
:factory => ZoneLocations.new( 15, -42, 13, 2, nil, nil, :cliffs, :dorms),
:dorms => ZoneLocations.new(-46, -49, 20, 4, nil, :factory, nil, :swamp),
:swamp => ZoneLocations.new(-98, -45, 10, 7, nil, :dorms, :docks, nil),
:docks => ZoneLocations.new(-82, -9, -4, -2, :swamp, nil, :entrance, nil),
:quarry => ZoneLocations.new( 52, -4, 17, -3, nil, :mineshaft, nil, :cliffs),
}),
}
end

View file

@ -165,11 +165,11 @@ class FastTravel
end
#Not WME
@fade_in = true
@data = $game_fasttravel.unlocked_maps.keys.sort
zone = ZONES[$game_fasttravel.zone]
# Set cursor to current map
@selected_location = @data[0]
@data.each_with_index do |map, i|
if $game_fasttravel.unlocked_maps[map].id == $game_map.map_id
@index = i
@ -177,6 +177,7 @@ class FastTravel
break
end
end
@fade_in = true
# Create title
@title.bitmap.clear

View file

@ -164,6 +164,9 @@ class Game_Player < Game_Character
# * Frame Update
#--------------------------------------------------------------------------
def update
if (Settings[:debug] && Input::key_press?(Input::key_from_name("F6")))
unlock
end
old_center_x = @center_x
old_center_y = @center_y
@center_x = ((Graphics.width / 2) - 16) * 4 # Center screen x-coordinate * 4
@ -190,21 +193,21 @@ class Game_Player < Game_Character
# Move player in the direction the directional button is being pressed
case Input.dir4
when 2
if $game_switches[112] == false
if $game_switches[112] == false
move_down
else
turn_down
end
else
turn_down
end
when 4
move_left
when 6
move_right
when 8
if $game_switches[112] == false
if $game_switches[112] == false
move_up
else
turn_up
end
else
turn_up
end
end
end
else

View file

@ -8,35 +8,4 @@ module Input
return normalized < Settings[:gamepad_deadzone] / 10.0 ? 0.0 : normalized
end
end
GAMEPAD_BUTTONS_NAMES = {
"a" => "A", # ▲□Ο
"b" => "B",
"x" => "X",
"y" => "Y",
"lefttringger" => "LT",
"righttringger" => "RT",
"leftshoulder" => "LS",
"rightshoulder" => "RS",
"dpdown" => "D-Pad Down",
"dpleft" => "D-Pad Left",
"dpright" => "D-Pad Right",
"dpup" => "D-Pad Up",
"back" => "Back",
"guide" => "Guide",
"start" => "Start",
"leftstick" => "Left Stick",
"rightstick" => "Right Stick",
"leftpaddle1" => "Left Paddle 1",
"rightpaddle1" => "Right Paddle 1",
"leftpaddle2" => "Left Paddle 2",
"rightpaddle2" => "Right Paddle 2",
"touchpad" => "Touchpad",
"misc1" => "Misc 1",
"misc2" => "Misc 2",
"misc3" => "Misc 3",
"misc4" => "Misc 4",
"misc5" => "Misc 5",
"misc6" => "Misc 6",
}
end