Search found 3074 matches

by zorg
Mon Jan 25, 2021 9:57 pm
Forum: Support and Development
Topic: question about Love.js security
Replies: 42
Views: 19502

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

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

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

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

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

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...
by zorg
Sun Jan 10, 2021 1:25 pm
Forum: Support and Development
Topic: [Solved] Pointing at an object that's out of sight
Replies: 14
Views: 8620

Re: [Solved] Pointing at an object that's out of sight

darkfrei wrote: Sat Jan 09, 2021 8:55 pm But (t==t) is always true.
Not for NaN values; those are the only ones where x==x is false.
by zorg
Sun Jan 03, 2021 6:45 am
Forum: General
Topic: Optimization Stuff
Replies: 40
Views: 30481

Re: Optimization Stuff

For you what is an example of a reasonably scaled game ? Something with multiple entities pathfinding on a large map, for example. Complex computation being done continuously. I guess Pacman is the minimal example to qualify, but even that's stretching. By that metric, Valve's Portal is not a reaso...
by zorg
Thu Dec 31, 2020 3:39 am
Forum: Support and Development
Topic: Function that switch values in a table
Replies: 2
Views: 2961

Re: Function that switch values in a table

test[testselected] is equivalent to test[1] because testselected is equal to 1 initially. I'm assuming your switchTableParameter function would change testselected to the next value that's in range of the table's numeric indices (in this case, test contains 3 elements, so the param would be 1, 2 or ...
by zorg
Thu Dec 31, 2020 3:34 am
Forum: Support and Development
Topic: How to make sure someone actually beated a level/course?
Replies: 4
Views: 3542

Re: How to make sure someone actually beated a level/course?

Just one thing i wanted to mention, in case any confusion would arise; TAS or not, speedrunners are technically not malevolent cheaters, they just like finding ways to play the game differently than how the developers intended them to be played; some might not consider that cheating at all. :3