Removed last possible usages of Graphics.frame_rate and Graphics.frame_count, improved screen scrolling code, player now animates walking into a wall

This commit is contained in:
Maruno17
2023-05-28 17:25:30 +01:00
parent f27841a7f8
commit 68de25562a
27 changed files with 643 additions and 1124 deletions

View File

@@ -124,8 +124,12 @@ class PokemonPokedexInfo_Scene
def pbUpdate
if @page == 2
intensity = (Graphics.frame_count % 40) * 12
intensity = 480 - intensity if intensity > 240
intensity_time = System.uptime % 1.0 # 1 second per glow
if intensity_time >= 0.5
intensity = lerp(64, 256 + 64, 0.5, intensity_time - 0.5)
else
intensity = lerp(256 + 64, 64, 0.5, intensity_time)
end
@sprites["areahighlight"].opacity = intensity
end
pbUpdateSpriteHash(@sprites)