Skip to content

Added SMODS.SpriteParticle#1404

Open
AllUniversal wants to merge 4 commits into
Steamodded:mainfrom
AllUniversal:sprite-particles
Open

Added SMODS.SpriteParticle#1404
AllUniversal wants to merge 4 commits into
Steamodded:mainfrom
AllUniversal:sprite-particles

Conversation

@AllUniversal
Copy link
Copy Markdown
Contributor

@AllUniversal AllUniversal commented May 30, 2026

+/*Title, allows defining and spawning SMODS.SpriteParticles. (-> Sprites with an atlas as normal, that remove themselves after their SpriteParticle.lifetime/when a condition is met.)
Example:

spriteparticle1.mp4

Code for the above was (roughly):

SMODS.SpriteParticle {
    key = "test",

    atlas = "particles",
    pos = {y = 0},

    shader = "dissolve",

    remove_condition = function (self, sprite, card, args)
        return sprite.current_animation.current == sprite.current_animation.frames - 1
    end
}

With a debug keybind function to spawn a particle on G.jokers.cards[1].

Additional Info:

  • I didn't modify api's or I've made a PR to the wiki repo.
  • I didn't modify api's or I've updated lsp definitions.
  • I didn't make new lovely files or all new lovely files have appropriate priority.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant