Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stenciled platform entities #112

Open
Jigoku opened this issue Nov 1, 2020 · 0 comments
Open

Stenciled platform entities #112

Jigoku opened this issue Nov 1, 2020 · 0 comments

Comments

@Jigoku
Copy link
Owner

Jigoku commented Nov 1, 2020

Implement a way to use a stencil entity with platforms
(would be placed as a resizeable rectangle).

  • stencil area occludes portions of the drawn platform to create a hole
  • would add some additional detail/interesting geometry to a level
  • does not affect collisions, as this would be intentionally used on the inside bounds of a platform entity.
local function stencil()
    love.graphics.rectangle("fill", x,y, w, h, r, r)
end

love.graphics.stencil(stencil, "invert", 255)
love.graphics.setStencilTest("less", 255)

draw()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant