Search found 1765 matches

by raidho36
Tue Jun 25, 2019 6:49 pm
Forum: Support and Development
Topic: Trouble with a simple fragment shader
Replies: 4
Views: 87

Re: Trouble with a simple fragment shader

You pretty much do what you commented out, and don't do what you left active. Your circle positions are world coordinates, and your custom transform is a worldview matrix from a virtual camera that's looking at the circles. Your circle positions should be 4-vectors though, and you can encode the rad...
by raidho36
Tue Jun 25, 2019 6:34 pm
Forum: Support and Development
Topic: How to make a post-processing shader?
Replies: 1
Views: 40

Re: How to make a post-processing shader?

Well that's pretty much what you do to create a fullscreen post processing effect, so there might be other ways but they're not worth bothering with. You're certainly not gonna make it render any faster by using a different approach, since it's bottlenecked by fill rate or memory bandwidth (in extre...
by raidho36
Thu Jun 20, 2019 5:50 am
Forum: Support and Development
Topic: A question about music
Replies: 13
Views: 437

Re: A question about music

Yeesh, that guy's a grump allright.

The proper spelling is "love.update". The "update" function is in the table "love". Make sure you never define another "love.update" function, it'll overwrite the last one.
by raidho36
Tue Jun 18, 2019 7:48 pm
Forum: Support and Development
Topic: A question about music
Replies: 13
Views: 437

Re: A question about music

If it's not looped, it stops playing at the end. As in, the playsate changes to "stopped". You can detect this and play the next track.
by raidho36
Sun Jun 16, 2019 6:11 am
Forum: Support and Development
Topic: [SOLVED]How to make destructive terrain like worm?
Replies: 4
Views: 213

Re: How to make destructive terrain like worm?

Sounds like "clipper" can do exactly what's needed there - it's specifically a boolean geometry operations library. I guess the way you work with it is that you create your terrain shape and keep that, and create destruction shapes as appropriate and use them to cut away at the terrain shape. If you...
by raidho36
Sun Jun 16, 2019 3:26 am
Forum: Support and Development
Topic: [SOLVED]How to make destructive terrain like worm?
Replies: 4
Views: 213

Re: How to make destructive terrain like worm?

If you need box2d then it's a fair bit more difficult, but if you only need the degree of physics like in worms then you could use the same technique: bitmap. The map graphics IS your physics object, when you check collisions against terrain you check for non-transparent pixels in the image. Given h...
by raidho36
Fri Jun 14, 2019 10:38 pm
Forum: Support and Development
Topic: (Math Help) How do I round to the nearest 50?
Replies: 2
Views: 137

Re: (Math Help) How do I round to the nearest 50?

You can try the following:

Code: Select all

function roundTo ( number, multiple )
  return math.floor ( ( number / multiple ) + 0.5 ) * multiple
end
by raidho36
Wed Jun 12, 2019 10:25 pm
Forum: General
Topic: How to install 11.2 on Raspbian?
Replies: 6
Views: 273

Re: How to install 11.2 on Raspbian?

You're in luck, because to make LOVE games you need nothing more than LOVE app and a text editor! Just fire up whatever programmer's notepad you're using and create Lua source code files in a folder of your choice. Then pass this folder to LOVE executable, and it'll run your game from source! And pa...
by raidho36
Wed Jun 12, 2019 11:14 am
Forum: Libraries and Tools
Topic: Find globals with LuaJIT (Linux, probably Mac too)
Replies: 12
Views: 1300

Re: Find globals with LuaJIT (Linux, probably Mac too)

It is absolutely optional, you can ignore the linter. The linter's job is to help you write idiomatic code. If you don't want to, then don't use a linter or just ignore the rules you don't care to follow. At no point does luacheck change your code, it only informs you of issues it finds. Not handli...
by raidho36
Tue Jun 11, 2019 9:21 pm
Forum: Libraries and Tools
Topic: Find globals with LuaJIT (Linux, probably Mac too)
Replies: 12
Views: 1300

Re: Find globals with LuaJIT (Linux, probably Mac too)

Karai17 wrote:
Tue Jun 11, 2019 4:07 pm
the underscore method is idiomatic Lua
It is, but it's not optional which makes it not fine.