mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-22 23:06:18 +00:00
вава
This commit is contained in:
parent
f8b2b3e6fa
commit
9e7c22f2b6
4 changed files with 22 additions and 49 deletions
|
|
@ -70,15 +70,15 @@ class FastTravel
|
||||||
:quarry => tr("lookout point"),
|
:quarry => tr("lookout point"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:entrance => ZoneLocations.new(-81, 22, -4, 3, :docks, :outpost, nil, nil),
|
:entrance => ZoneLocations.new(-81, 22, -4, 3, :docks, :outpost, nil, nil),
|
||||||
:outpost => ZoneLocations.new(-52, 42, 6, -3, nil, :cliffs, nil, :entrance),
|
:outpost => ZoneLocations.new(-52, 42, 6, -3, nil, :cliffs, nil, :entrance),
|
||||||
:cliffs => ZoneLocations.new(4, -3, 21, 38, :factory, :quarry, nil, :outpost),
|
:cliffs => ZoneLocations.new( 4, -3, 21, 38, :factory, :quarry, nil, :outpost),
|
||||||
:mineshaft => ZoneLocations.new(88, -3, 5, 0, nil, nil, nil, :quarry),
|
:mineshaft => ZoneLocations.new( 88, -3, 5, 0, nil, nil, nil, :quarry),
|
||||||
:factory => ZoneLocations.new(15, -42, 13, 2, nil, nil, :cliffs, :dorms),
|
:factory => ZoneLocations.new( 15, -42, 13, 2, nil, nil, :cliffs, :dorms),
|
||||||
:dorms => ZoneLocations.new(-46, -49, 20, 4, nil, :factory, nil, :swamp),
|
:dorms => ZoneLocations.new(-46, -49, 20, 4, nil, :factory, nil, :swamp),
|
||||||
:swamp => ZoneLocations.new(-98, -45, 10, 7, nil, :dorms, :docks, nil),
|
:swamp => ZoneLocations.new(-98, -45, 10, 7, nil, :dorms, :docks, nil),
|
||||||
:docks => ZoneLocations.new(-82, -9, -4, -2, :swamp, nil, :entrance, nil),
|
:docks => ZoneLocations.new(-82, -9, -4, -2, :swamp, nil, :entrance, nil),
|
||||||
:quarry => ZoneLocations.new(52, -4, 17, -3, nil, :mineshaft, nil, :cliffs),
|
:quarry => ZoneLocations.new( 52, -4, 17, -3, nil, :mineshaft, nil, :cliffs),
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -165,11 +165,11 @@ class FastTravel
|
||||||
end
|
end
|
||||||
|
|
||||||
#Not WME
|
#Not WME
|
||||||
@fade_in = true
|
|
||||||
@data = $game_fasttravel.unlocked_maps.keys.sort
|
@data = $game_fasttravel.unlocked_maps.keys.sort
|
||||||
zone = ZONES[$game_fasttravel.zone]
|
zone = ZONES[$game_fasttravel.zone]
|
||||||
|
|
||||||
# Set cursor to current map
|
# Set cursor to current map
|
||||||
|
@selected_location = @data[0]
|
||||||
@data.each_with_index do |map, i|
|
@data.each_with_index do |map, i|
|
||||||
if $game_fasttravel.unlocked_maps[map].id == $game_map.map_id
|
if $game_fasttravel.unlocked_maps[map].id == $game_map.map_id
|
||||||
@index = i
|
@index = i
|
||||||
|
|
@ -177,6 +177,7 @@ class FastTravel
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@fade_in = true
|
||||||
|
|
||||||
# Create title
|
# Create title
|
||||||
@title.bitmap.clear
|
@title.bitmap.clear
|
||||||
|
|
|
||||||
|
|
@ -164,6 +164,9 @@ class Game_Player < Game_Character
|
||||||
# * Frame Update
|
# * Frame Update
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
def update
|
def update
|
||||||
|
if (Settings[:debug] && Input::key_press?(Input::key_from_name("F6")))
|
||||||
|
unlock
|
||||||
|
end
|
||||||
old_center_x = @center_x
|
old_center_x = @center_x
|
||||||
old_center_y = @center_y
|
old_center_y = @center_y
|
||||||
@center_x = ((Graphics.width / 2) - 16) * 4 # Center screen x-coordinate * 4
|
@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
|
# Move player in the direction the directional button is being pressed
|
||||||
case Input.dir4
|
case Input.dir4
|
||||||
when 2
|
when 2
|
||||||
if $game_switches[112] == false
|
if $game_switches[112] == false
|
||||||
move_down
|
move_down
|
||||||
else
|
else
|
||||||
turn_down
|
turn_down
|
||||||
end
|
end
|
||||||
when 4
|
when 4
|
||||||
move_left
|
move_left
|
||||||
when 6
|
when 6
|
||||||
move_right
|
move_right
|
||||||
when 8
|
when 8
|
||||||
if $game_switches[112] == false
|
if $game_switches[112] == false
|
||||||
move_up
|
move_up
|
||||||
else
|
else
|
||||||
turn_up
|
turn_up
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -8,35 +8,4 @@ module Input
|
||||||
return normalized < Settings[:gamepad_deadzone] / 10.0 ? 0.0 : normalized
|
return normalized < Settings[:gamepad_deadzone] / 10.0 ? 0.0 : normalized
|
||||||
end
|
end
|
||||||
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
|
end
|
||||||
Loading…
Reference in a new issue