Page 1 of 1

shack - screen effects made simple

Posted: Sat Apr 30, 2016 5:18 pm
by Ulydev
Hello,

Here's another minimalist library that, I hope, will be useful to you.

shack is a library that aims to let you easily add screen effects such as shake and rotation.

Image

Code: Select all

local screen = require "shack"

function love.update(dt)
  screen:update(dt)
end

function love.draw()
  screen:apply()
  
  --draw here
end

screen:shake(20)
https://github.com/Ulydev/shack

Re: shack - screen effects made simple

Posted: Sat Apr 30, 2016 7:41 pm
by Ulydev
Quick update: added shear and scale.

Code: Select all

screen:setShear(1, -1)

screen:setScale(.5)
screen:setScale(2, 1) --or with two parameters

Re: shack - screen effects made simple

Posted: Sun May 01, 2016 6:45 pm
by steVeRoll
This looks very useful and simple! Nice work!

Re: shack - screen effects made simple

Posted: Mon May 02, 2016 2:13 pm
by damountie
I like how this sticks to one task, I can imagine lots of dramatic effects using this, cool!

Re: shack - screen effects made simple

Posted: Tue Sep 21, 2021 12:47 pm
by Chief Plankton
Does this still work, good sir?