A lot of FPS agnosticism, added def lerp

This commit is contained in:
Maruno17
2023-05-20 18:37:54 +01:00
parent 62e372f4d7
commit d112e2361a
38 changed files with 619 additions and 628 deletions

View File

@@ -313,10 +313,10 @@ ItemHandlers::UseInField.add(:ITEMFINDER, proc { |item|
offsetY = event.y - $game_player.y
if offsetX == 0 && offsetY == 0 # Standing on the item, spin around
4.times do
pbWait(Graphics.frame_rate * 2 / 10)
pbWait(0.2)
$game_player.turn_right_90
end
pbWait(Graphics.frame_rate * 3 / 10)
pbWait(0.3)
pbMessage(_INTL("The {1}'s indicating something right underfoot!", GameData::Item.get(item).name))
else # Item is nearby, face towards it
direction = $game_player.direction
@@ -331,7 +331,7 @@ ItemHandlers::UseInField.add(:ITEMFINDER, proc { |item|
when 6 then $game_player.turn_right
when 8 then $game_player.turn_up
end
pbWait(Graphics.frame_rate * 3 / 10)
pbWait(0.3)
pbMessage(_INTL("Huh? The {1}'s responding!", GameData::Item.get(item).name) + "\1")
pbMessage(_INTL("There's an item buried around here!"))
end