Search found 1761 matches

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: 120

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: 120

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: 89

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: 200

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: 928

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: 928

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.
by raidho36
Tue Jun 11, 2019 9:19 pm
Forum: General
Topic: Please delete my account
Replies: 1
Views: 136

Re: Please delete my account

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

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...
by raidho36
Fri Jun 07, 2019 6:56 pm
Forum: Support and Development
Topic: Trouble with OpenGl
Replies: 4
Views: 403

Re: Trouble with OpenGl

LOVE's minimum requirements increased since version 11. You can try using older version if your hardware doesn't support modern standards.
by raidho36
Mon Jun 03, 2019 5:40 am
Forum: Support and Development
Topic: Ogg Vorbis And Audio Start and end Loop Tags?
Replies: 4
Views: 700

Re: Ogg Vorbis And Audio Start and end Loop Tags?

I don't think this will happen. You can however export the looping points as text and then load it in the game.