shack - screen effects made simple

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
Ulydev
Party member
Posts: 445
Joined: Mon Nov 10, 2014 10:46 pm
Location: Paris
Contact:

shack - screen effects made simple

Post 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
User avatar
Ulydev
Party member
Posts: 445
Joined: Mon Nov 10, 2014 10:46 pm
Location: Paris
Contact:

Re: shack - screen effects made simple

Post 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
User avatar
steVeRoll
Party member
Posts: 125
Joined: Sun Feb 14, 2016 1:13 pm

Re: shack - screen effects made simple

Post by steVeRoll »

This looks very useful and simple! Nice work!
damountie
Prole
Posts: 3
Joined: Thu Feb 25, 2016 5:49 pm
Contact:

Re: shack - screen effects made simple

Post by damountie »

I like how this sticks to one task, I can imagine lots of dramatic effects using this, cool!
Twitter: @notdamountie
Chief Plankton
Prole
Posts: 2
Joined: Fri Sep 17, 2021 6:04 am

Re: shack - screen effects made simple

Post by Chief Plankton »

Does this still work, good sir?
Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests