Heck, that was it!
Sending the fixed version for anyone interested.
Search found 55 matches
- Sat Jun 18, 2022 3:07 pm
- Forum: Support and Development
- Topic: Directional Shadows
- Replies: 2
- Views: 1763
- Sat Jun 18, 2022 2:51 pm
- Forum: Support and Development
- Topic: Directional Shadows
- Replies: 2
- Views: 1763
Re: Directional Shadows
Still on it but one thing that was definitely wrong was sometimes sending matrices with row and sometimes with column MatrixLayout :/
- Fri Jun 17, 2022 10:05 am
- Forum: Support and Development
- Topic: Directional Shadows
- Replies: 2
- Views: 1763
Directional Shadows
Hi there! Long time no see! I'm struggling with directional lights. I believe currentDepth (the distance from light used in final render) is correct (or it's `1-x`, not sure), but everything else - not sure. I feel like it's a minor change missing and I will feel stupid when I find it. I've prepared...
- Mon Feb 14, 2022 5:01 pm
- Forum: Support and Development
- Topic: How to show silhouette when behind objects
- Replies: 7
- Views: 5768
Re: How to show silhouette when behind objects
Hey, hope this helps (most likely not the only way): 1. draw normally 2. to off-sceen canvas: draw mask so we know where the silhouette could should be drawn (on objects, not on player, if you have layers - e.g. floor, you might skip drawing it 3. to another off-screen canvas: draw all silhouettes f...
- Sat Aug 25, 2018 7:43 am
- Forum: Support and Development
- Topic: Pausing animation in ParticleSystem
- Replies: 2
- Views: 3363
Re: Pausing animation in ParticleSystem
Take a look at ParticleSystem::update (1); it seams that quadIndex is a function of t (normalized "age" of a particle) so no way to achieve what you want using vanilla LÖVE. As of using different textures: there is also impossible because texture is a field of the ParticleSystem and Partic...
- Sat Aug 11, 2018 8:33 pm
- Forum: Support and Development
- Topic: Black Screen when Dropping .love on Love2D
- Replies: 7
- Views: 7642
Re: Black Screen when Dropping .love on Love2D
If your goal is to have just some debugging info maybe you could use https://love2d.org/wiki/love.graphics.newImageFont ? I believe it'd work, although not 100% sure.
- Fri Aug 10, 2018 7:30 am
- Forum: Support and Development
- Topic: -bash: love: command not found
- Replies: 6
- Views: 9145
Re: -bash: love: command not found
if
then
elseif
then
end
Code: Select all
$ ls mygame/main.lua
mygame/main.lua
Code: Select all
$ love.app/Contents/MacOS/love mygame
Code: Select all
$ ls
main.lua
Code: Select all
$ love.app/Contents/MacOS/love .
- Thu Aug 09, 2018 2:13 pm
- Forum: Support and Development
- Topic: Problem with drawing only the cubes on screen.
- Replies: 7
- Views: 5699
Re: Problem with drawing only the cubes on screen.
not (((screenX < -150) or (screenX > wW + 150)) and ((screenY < -150) or (screenY > wH + 150))) renders 1,3,5,7,9: region #5 is your viewport and everything else is not visible: 1|2|3 -+-+- 4|5|6 -+-+- 7|8|9 You want to render only 5 (viewport) so try changing and keyword to an or . not ((screenX <...
- Tue Aug 07, 2018 7:37 pm
- Forum: Support and Development
- Topic: -bash: love: command not found
- Replies: 6
- Views: 9145
Re: -bash: love: command not found
It works just fine: Terminal $ ls love-11.1-macos.zip $ unzip love-11.1-macos.zip ... $ mkdir mygame $ echo "function love.draw() love.graphics.print('Hello world') end" > mygame/main.lua $ love.app/Contents/MacOS/love mygame If you wish you may want to add an alias, or update your $PATH v...
- Tue Aug 08, 2017 11:57 am
- Forum: General
- Topic: [Solved] Mouse click weirdness
- Replies: 3
- Views: 3622
Re: Mouse click weirdness
In mouseRemove function in line table.remove(rings, i) : i variable is always nil because it's not set in this scope. The i variable form the for loop is scoped to the for loop. table.remove(a, nil) is the same as table.remove(a) is the same as table.remove(a, #a) (docs) Instead of setting colides =...