Search found 75 matches

by drunken_thor
Wed Oct 29, 2014 2:52 pm
Forum: Libraries and Tools
Topic: Löve "Light vs. Shadow" Engine v2
Replies: 140
Views: 120642

Re: Löve "Light vs. Shadow" Engine v2

Nathan1852 wrote:It would also be nice if there was a way so that the top of objects isn't illuminated when the light is near them
Do you mean it stays dark or that the light doesnt effect it. You can do the latter by using body:setShine(false).
by drunken_thor
Fri Oct 24, 2014 6:49 pm
Forum: Libraries and Tools
Topic: Löve "Light vs. Shadow" Engine v2
Replies: 140
Views: 120642

Löve "Light vs. Shadow" Engine v2

Hey everyone, So I found this http://www.love2d.org/forums/viewtopic.php?f=5&t=77418 topic a while ago and love the light engine but it didn't react well to scaling at all so I rewrote it here! https://github.com/tanema/light_world.lua Some changes I made: - rewrote the codebase to be much easie...
by drunken_thor
Wed Oct 01, 2014 5:37 pm
Forum: Support and Development
Topic: [SOLVED] Nested context scale doesn't work
Replies: 4
Views: 3395

Re: Nested context scale doesn't work

okay so someone on reddit was able to give me a good answer/solution you can find it here: https://www.reddit.com/r/love2d/comments/2hycix/nested_context_scale_issue/ckxieez Scale is relative. scaling to 1 just sets it to what it currently is. If your first scale is, say, 2 (2/1) then to fix the sca...
by drunken_thor
Wed Oct 01, 2014 12:27 pm
Forum: Support and Development
Topic: [SOLVED] Nested context scale doesn't work
Replies: 4
Views: 3395

Re: Nested context scale doesn't work

Sorry I should have been more clear, the scaling is an issue because I need to retain the translation and rotation but reset the scale. this is because I am drawing many canvases, then having them all added to a last one that I want to scale up.
by drunken_thor
Wed Oct 01, 2014 12:29 am
Forum: Support and Development
Topic: [SOLVED] Nested context scale doesn't work
Replies: 4
Views: 3395

[SOLVED] Nested context scale doesn't work

Hey all, I have been struggling to get this to work and I finally am turned to you. I cannot seem to get scaling working if it is in a nested context let me show you what I mean local scale, camera local canvas1, canvas2, canvas3 function love.load() scale = 1 canvas1 = love.graphics.newCanvas() can...