Search found 3088 matches

by zorg
Mon Feb 08, 2021 11:33 pm
Forum: Libraries and Tools
Topic: Objective Lua - additional syntax to original Lua!
Replies: 26
Views: 11745

Re: Objective Lua - additional syntax to original Lua!

more than that, since lua supports multiple assignment, would multiple compound assignment be supported?

a,b*=b+5,1-a

->

a,b = a*(b+5),b*(1-a)
by zorg
Sun Feb 07, 2021 12:50 pm
Forum: Support and Development
Topic: love.physics: mass vs weight
Replies: 6
Views: 2367

Re: love.physics: mass vs weight

If my bathroom scales says 100kg is it really saying a) mass = 100kg or is it saying b) weight = 100 * 9.8 N's? b, but moreso both, since we ARE on earth, and that's our objective referent to why we're saying someone "weights" 100kg (on earth - tacked on implicitly) and we leave off the c...
by zorg
Thu Feb 04, 2021 8:58 am
Forum: Support and Development
Topic: How to develop adaptive resolution?
Replies: 7
Views: 2604

Re: How to develop adaptive resolution?

For your second question use love.window.setMode(w,h) amd make h bigger than w. https://love2d.org/forums/viewtopic.php?f=4&t=89952&sid=08b9a03b4b1a774ea5cfa6bfcd9c2d04 . As for the rest I use love.graphics.getWidth/Height to draw stuff that I want scaled, so my drawings scale automatically...
by zorg
Thu Jan 28, 2021 6:50 am
Forum: Support and Development
Topic: question about Love.js security
Replies: 42
Views: 20171

Re: question about Love.js security

Can't say i share the same level of vanity. You have proof you did something, others don't. And besides, what good does such a claim do anyway? I want to be "known" as the only person who managed to implement that, Implement what? Also, out of the 10 billion people on the planet, i kinda d...
by zorg
Mon Jan 25, 2021 9:57 pm
Forum: Support and Development
Topic: question about Love.js security
Replies: 42
Views: 20171

Re: question about Love.js security

Also, source code alone (the engine) is not much of use, the story and the assets and the overall working of it counts. Apart from playing the game, the stories can be told, the visual assets can be screenshotted, sound assets can be recorded, and it overall can be shared (think let's play videos/s...
by zorg
Sat Jan 23, 2021 1:16 pm
Forum: General
Topic: Adaptive music?
Replies: 1
Views: 4482

Re: Adaptive music?

Hi and welcome to the forums! There are many ways to make adaptive music, but since you specified Celeste-like, it's one of the simpler methods i think; One solution could be fully layered tracks cross-fading from one to another (the current one fading out, the next one simultaneously fading in) Ano...
by zorg
Fri Jan 22, 2021 10:31 pm
Forum: Support and Development
Topic: [Solved] get table in-between {}
Replies: 6
Views: 5808

Re: get table in-between {}

With a = {a, b}, you're actually doing this: a = {[1] = a, [2] = b}, and at that time, both a and b are either nil, or whatever you set those, if you did. The second issue is you doubling up the brackets, so again, you'll get this: a.b = {[1] = {['c'] = 1}} which can be printed with a.b[1].c instead...
by zorg
Sat Jan 16, 2021 10:40 am
Forum: Libraries and Tools
Topic: SUPER STRICT for LUA
Replies: 31
Views: 25016

Re: SUPER STRICT for LUA

return not not self.rects This is a weird-looking line, but yea I can adjust the parser to support it. not can be stacked more than twice, just saying that more than two should parse fine as well. :3 Also SUPERSTRICT now allows empty functions. All other empty code blocks are reported. so these one...
by zorg
Sat Jan 16, 2021 4:37 am
Forum: General
Topic: Midi format music distortion
Replies: 14
Views: 10860

Re: Midi format music distortion

I'm assuming that libmodplug itself handles the "no timidity? use beeps" thing; it is probably also responsible for whatever timing issues happen; MIDI and tracker formats are not 1:1 compatible, so strange things can happen after it converts the data. Might be a neat idea to look at that ...
by zorg
Wed Jan 13, 2021 4:26 am
Forum: Libraries and Tools
Topic: SUPER STRICT for LUA
Replies: 31
Views: 25016

Re: SUPER STRICT for LUA

Others are allowed: local obj = {} function obj:baz() -- allowed because it's inside an object end while myFunc() do -- allowed because of the call to myFunc() end since : is just syntax sugar, are empty functions of this form allowed or not? i'd assume they are since they're in a table as well, du...