Search found 51 matches

by 0x72
Sat Aug 25, 2018 7:43 am
Forum: Support and Development
Topic: Pausing animation in ParticleSystem
Replies: 2
Views: 552

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 ...
by 0x72
Sat Aug 11, 2018 8:33 pm
Forum: Support and Development
Topic: Black Screen when Dropping .love on Love2D
Replies: 7
Views: 1132

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.
by 0x72
Fri Aug 10, 2018 7:30 am
Forum: Support and Development
Topic: -bash: love: command not found
Replies: 6
Views: 1030

Re: -bash: love: command not found

if

Code: Select all

$ ls mygame/main.lua
mygame/main.lua
then

Code: Select all

$ love.app/Contents/MacOS/love mygame
elseif

Code: Select all

$ ls
main.lua
then

Code: Select all

$ love.app/Contents/MacOS/love .
end
by 0x72
Thu Aug 09, 2018 2:13 pm
Forum: Support and Development
Topic: Problem with drawing only the cubes on screen.
Replies: 7
Views: 792

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 <...
by 0x72
Tue Aug 07, 2018 7:37 pm
Forum: Support and Development
Topic: -bash: love: command not found
Replies: 6
Views: 1030

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...
by 0x72
Tue Aug 08, 2017 11:57 am
Forum: General
Topic: [Solved] Mouse click weirdness
Replies: 3
Views: 851

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 =...
by 0x72
Tue Jun 27, 2017 7:03 pm
Forum: Support and Development
Topic: [SOLVED] Have doubles in a shader
Replies: 2
Views: 642

Re: Have doubles in a shader

It looks like this is the case :( this is troublesome, but good to know. Thanks a lot :)
by 0x72
Tue Jun 27, 2017 6:16 pm
Forum: Support and Development
Topic: [SOLVED] Have doubles in a shader
Replies: 2
Views: 642

[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...
by 0x72
Thu May 25, 2017 7:56 am
Forum: Support and Development
Topic: Odd Require Path Problems
Replies: 5
Views: 1329

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...
by 0x72
Sun Mar 26, 2017 7:18 pm
Forum: Games and Creations
Topic: Dudes with bombs (party game)
Replies: 9
Views: 2802

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...