Showcase your libraries, tools and other projects that help your fellow love users.
-
Ulydev
- Party member
- Posts: 445
- Joined: Mon Nov 10, 2014 10:46 pm
- Location: Paris
-
Contact:
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.
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
-
Ulydev
- Party member
- Posts: 445
- Joined: Mon Nov 10, 2014 10:46 pm
- Location: Paris
-
Contact:
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
-
steVeRoll
- Party member
- Posts: 139
- Joined: Sun Feb 14, 2016 1:13 pm
Post
by steVeRoll »
This looks very useful and simple! Nice work!
-
damountie
- Prole
- Posts: 3
- Joined: Thu Feb 25, 2016 5:49 pm
-
Contact:
Post
by damountie »
I like how this sticks to one task, I can imagine lots of dramatic effects using this, cool!
Twitter: @notdamountie
Users browsing this forum: Bing [Bot] and 3 guests