Skip to content

Commit

Permalink
fix: orb effect
Browse files Browse the repository at this point in the history
  • Loading branch information
hteumeuleu committed Feb 12, 2023
1 parent 4f774f2 commit 5d7709e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/Scripts/celeste.lua
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,10 @@ player =
-- Playdate sprite drawing
if this.pdspr ~= nil then
local pdimg = data.imagetables.player:getImage(math.floor(this.spr))
local has_orb_effect = (this.djump >= 2 and math.floor((frames/3)%2) == 0)
if reduce_flashing then
has_orb_effect = false
end
if this.djump == 0 or has_orb_effect then
local newimg = pdimg:copy()
newimg:clear(playdate.graphics.kColorClear)
Expand Down

0 comments on commit 5d7709e

Please sign in to comment.