Search found 123 matches

by milon
Mon Mar 08, 2021 6:58 pm
Forum: Support and Development
Topic: looking for a nice text border (outline/stroke) script.
Replies: 7
Views: 1607

Re: looking for a nice text border (outline/stroke) script.

Not the most efficient way, but here's a quick-and-dirty option: Define your outline color and your font color. Then draw the text in the outline color 1 pixel away in all 8 directions (including diagonal). Then set the color to your font color and draw your text without any offset applied. It's 9 t...
by milon
Thu Mar 04, 2021 1:57 pm
Forum: General
Topic: That facepalm moment when ...
Replies: 11
Views: 5677

Re: That facepalm moment when ...

This is the correct answer: hey, why is it printing 1 1? Tables are passed by reference in lua. As such, if you pass in a table and do some modifications on it, then those changes will persist even after the function finishes. However, in the posted code, when the reset_vector is any non-falsey valu...
by milon
Mon Mar 01, 2021 9:56 pm
Forum: General
Topic: Wordsearch (HTML5 game)
Replies: 8
Views: 9540

Re: Wordsearch (HTML5 game)

I think that's an example of finding an alternate acceptable word. You can't normally select only part of a word (I just tested this) unless it's a real word on it's own. For example, if you're looking for BLIMP you can also select LIMP (it's a real word) and probably also IMP. I had to look it up, ...
by milon
Mon Mar 01, 2021 9:51 pm
Forum: General
Topic: When are we going to see 0.12.0?
Replies: 14
Views: 7989

Re: When are we going to see 0.12.0?

Love2D GUI would be great, I see a lot of people wanting love2D guis, and also a .exe that makes a .love into a .exe without making everything so complicated. When you say GUI, do you mean an IDE? There's lots of options that exist already. But maybe you mean something else? And for compiling games...
by milon
Thu Feb 25, 2021 4:16 pm
Forum: Games and Creations
Topic: Labyrinth of Legendary Loot - turn-based roguelike released on itch.io and Google Play Store
Replies: 15
Views: 13690

Re: Labyrinth of Legendary Loot - turn-based roguelike released on itch.io and Google Play Store

I've been playing this game a little more recently, and I "sorta" beat it just now - I killed the final boss and then immediately died myself (was a Cultist with unfortunate timing). Epic finish to a great run!! What a sweet game! :cool:
by milon
Thu Feb 18, 2021 6:44 pm
Forum: General
Topic: That facepalm moment when ...
Replies: 11
Views: 5677

Re: That facepalm moment when ...

Nah, it was copypasta. The line should have read:
watermap[x][y] = math.abs(watermap[x][y] * 2 - 1)

But I see where you're coming from. I didn't exactly give any context.
by milon
Thu Feb 18, 2021 6:43 pm
Forum: General
Topic: Midi format music distortion
Replies: 14
Views: 10978

Re: Midi format music distortion

Cool, thanks for clearing that up for me. :)
by milon
Wed Feb 17, 2021 6:30 pm
Forum: General
Topic: That facepalm moment when ...
Replies: 11
Views: 5677

Re: That facepalm moment when ...

Haha! Been there, done that - both of those, actually!

Here's most recent facepalm:

Code: Select all

    for x = 1, width do
        for y = 1, height do
            heightmap[x][y] = 1 - math.abs(heightmap[x][y] * 2 - 1)
            watermap[x][y] = math.abs(heightmap[x][y] * 2 - 1)
        end
    end
by milon
Wed Feb 17, 2021 5:59 pm
Forum: General
Topic: Wordsearch (HTML5 game)
Replies: 8
Views: 9540

Re: Wordsearch (HTML5 game)

Awesome, love it!! One weird little quirk exists (at least on Firefox on Linux Mint) - when I find all the words, I get a little fanfare thing (hooray!) and the word search disappears. If I tab away and tab back, the word search is visible again under the fanfare dialog. I'm not sure which behavior ...
by milon
Wed Feb 17, 2021 5:49 pm
Forum: General
Topic: Midi format music distortion
Replies: 14
Views: 10978

Re: Midi format music distortion

Is there a real use case for MIDI these days? Why not use mp3 or ogg etc? (I promise I'm not trying to be a jerk - I just am surprised to see this question in 2021.)