Skip to content

Add SpriteStep Object - #1478

Open
ellestuff wants to merge 7 commits into
Steamodded:mainfrom
ellestuff:main
Open

Add SpriteStep Object#1478
ellestuff wants to merge 7 commits into
Steamodded:mainfrom
ellestuff:main

Conversation

@ellestuff

@ellestuff ellestuff commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Sprite Steps let you draw directly to sprites via canvases. This additionally allows for shader stacking and more

Example:

	SMODS.SpriteStep {
		key = "burns",
		order = 1,
		func = function(self, image, quad, sprite)
			love.graphics.setShader(burn_shader)

			local w,h = quad:getTextureDimensions()
			local sw,sh = quad:getViewport()

			burn_shader:send("offset", {w,h,sw,sh})
			burn_shader:send("seed", sprite.parent.unique_val)
			burn_shader:send("amp", sprite.parent.ability.elle_burn_effect)
		
			love.graphics.draw(image,quad,0,0)
		end,
		should_apply = function(self, sprite)
			return sprite.parent and sprite.parent.ability and sprite.parent.ability.elle_burn_effect and sprite.parent.ability.elle_burn_effect > 0
		end
	}
image

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.

@ellestuff ellestuff changed the title Add sprite_steps Optional Feature Add sprite_steps Object Aug 2, 2026
@ellestuff

Copy link
Copy Markdown
Contributor Author

don't merge this yet, i've found it out doesn't work when pixel smoothing is on. i need to fix that first

@ellestuff
ellestuff marked this pull request as draft August 2, 2026 19:04
@ellestuff
ellestuff marked this pull request as ready for review August 2, 2026 20:05
@ellestuff

Copy link
Copy Markdown
Contributor Author

okay it's fixed now, it wasn't a bug with pixel smoothing but rather something else

@ellestuff ellestuff changed the title Add sprite_steps Object Add SpriteStep Object Aug 2, 2026
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