## Search found 1763 matches

Thu Jun 20, 2019 5:50 am
Forum: Support and Development
Replies: 11
Views: 192

### 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.
Tue Jun 18, 2019 7:48 pm
Forum: Support and Development
Replies: 11
Views: 192

### 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.
Sun Jun 16, 2019 6:11 am
Forum: Support and Development
Topic: [SOLVED]How to make destructive terrain like worm?
Replies: 4
Views: 158

### 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...
Sun Jun 16, 2019 3:26 am
Forum: Support and Development
Topic: [SOLVED]How to make destructive terrain like worm?
Replies: 4
Views: 158

### 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...
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: 112

### 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
Wed Jun 12, 2019 10:25 pm
Forum: General
Topic: How to install 11.2 on Raspbian?
Replies: 6
Views: 244

### 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...
Wed Jun 12, 2019 11:14 am
Forum: Libraries and Tools
Topic: Find globals with LuaJIT (Linux, probably Mac too)
Replies: 12
Views: 1049

### 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...
Tue Jun 11, 2019 9:21 pm
Forum: Libraries and Tools
Topic: Find globals with LuaJIT (Linux, probably Mac too)
Replies: 12
Views: 1049

### 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.
Tue Jun 11, 2019 9:19 pm
Forum: General
Replies: 1
Views: 161

### Re: Please delete my account

You could simply stop using your account. Rest assured, the only person who cares is you.
Tue Jun 11, 2019 10:05 am
Forum: Libraries and Tools
Topic: Find globals with LuaJIT (Linux, probably Mac too)
Replies: 12
Views: 1049

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

Unused variables is something that Lua does a lot in general, so the linter should be able to handle it gracefully rather than force users into particular way of writing code - which is against Lua's principles. My idea of this is that it should be able to pick up metacomments about it and issue war...