Search found 51 matches
- Sat Aug 25, 2018 7:43 am
- Forum: Support and Development
- Topic: Pausing animation in ParticleSystem
- Replies: 2
- Views: 1193
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 Particle s know ...
- Sat Aug 11, 2018 8:33 pm
- Forum: Support and Development
- Topic: Black Screen when Dropping .love on Love2D
- Replies: 7
- Views: 2473
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: 3170
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: 2099
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: 3170
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 variable so...
- Tue Aug 08, 2017 11:57 am
- Forum: General
- Topic: [Solved] Mouse click weirdness
- Replies: 3
- Views: 1481
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 =...
- Tue Jun 27, 2017 7:03 pm
- Forum: Support and Development
- Topic: [SOLVED] Have doubles in a shader
- Replies: 2
- Views: 1137
Re: Have doubles in a shader
It looks like this is the case
this is troublesome, but good to know. Thanks a lot 


- Tue Jun 27, 2017 6:16 pm
- Forum: Support and Development
- Topic: [SOLVED] Have doubles in a shader
- Replies: 2
- Views: 1137
[SOLVED] Have doubles in a shader
Hi guys! I have a problem I couldn't find answer to, but my bet is the answer is super simple and I'll feel stupid after someone help me (thanks in advance :)). I need to use doubles in my shader code. number is just a float so it's not good. Minimal example: vec4 effect(vec4 color, Image texture, v...
- Thu May 25, 2017 7:56 am
- Forum: Support and Development
- Topic: Odd Require Path Problems
- Replies: 5
- Views: 2273
Re: Odd Require Path Problems
You missed a semicolon (this doesn't sound like lua, but it is :D). I bet this is somehow related, although your situation still seams weird. function addRequirePath(path) package.path=package.path .. ";./" .. path .. "/?.lua;" end Aside note: you can replace the inner loop in include with (But: why...
- Sun Mar 26, 2017 7:18 pm
- Forum: Games and Creations
- Topic: Dudes with bombs (party game)
- Replies: 9
- Views: 4147
Re: Dudes with bombs (party game)
I minor update 0.0.3 - some bugfixes + a small tutorial when you begin the game. @ertt - I'm glad you've figured this out, I must admit I've never seen a german in my life but I've added a small `or` or it works with both shift-; and shift-, :) @sandygk - Thanks, I've added a small tutorial screen a...