Skip to content

Commit

Permalink
Fade meteor out
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanlangston committed Jan 6, 2024
1 parent e1e8770 commit bad687b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Meteor.zig
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ pub const Meteor = struct {
if (visibleY > activeRadiusY or visibleY < -activeRadiusY) return;

const spriteFrame = MeteorSprite.getSpriteFrame(@intFromFloat(self.frame));
const color: raylib.Color = if (self.active) self.color else raylib.Color.fade(self.color, 0.3);
const color: raylib.Color = if (self.active) self.color else raylib.Color.fade(self.color, (MeteorSprite.Frames - self.frame) / MeteorSprite.Frames);

raylib.drawTextureNPatch(
spriteFrame.Texture,
Expand Down

0 comments on commit bad687b

Please sign in to comment.