Search found 302 matches

by ReFreezed
Sun Oct 17, 2021 7:49 pm
Forum: Games and Creations
Topic: 2D puzzle "Biohazard"
Replies: 1
Views: 70

Re: 2D puzzle "Biohazard"

Interesting idea. It's a bit difficult to predict what is going to happen after placing the cells. I got down to 7.
by ReFreezed
Wed Oct 13, 2021 4:24 pm
Forum: Support and Development
Topic: Portrait rotation in android - correct way?
Replies: 5
Views: 383

Re: Portrait rotation in android - correct way?

All that's needed for portrait mode is for the height to be larger than the width. Even this should work: t.window.width = 1 t.window.height = 2 Because you cannot change the actual screen resolution on Android, the width and height is only used by LÖVE to determine the wanted aspect ratio and wheth...
by ReFreezed
Wed Oct 06, 2021 9:12 pm
Forum: Support and Development
Topic: What sites do you recommend for hosting your screenshots and game? [RESOLVED]
Replies: 13
Views: 2285

Re: What sites do you recommend for hosting your screenshots and game?

Imgur is reliable for hosting images, and itch.io is probably the most popular option for hosting games. Attaching files to posts should be the simplest option, but it doesn't always seem to work too well.
by ReFreezed
Thu Sep 30, 2021 10:20 am
Forum: Support and Development
Topic: [Solved] Different Uses of Spritebatches
Replies: 2
Views: 1255

Re: Different Uses of Spritebatches

If you have multiple images then you'll need a different spritebatch for each image. If your tilesets aren't huge you could combine all tileset images into one image - then you could use a single batch for everything.
by ReFreezed
Wed Sep 15, 2021 10:11 pm
Forum: General
Topic: Idea Review: Better than Pixel Perfect ?
Replies: 1
Views: 2298

Re: Idea Review: Better than Pixel Perfect ?

You can definitively get rid of the middle step involving an image (which seem highly inefficient), and probably the finalCanvas step too (if you don't have more post-processing to do or something). Example using only one canvas: local WORLD_WIDTH = 80 local WORLD_HEIGHT = 100 local worldCanvas, wor...
by ReFreezed
Mon Aug 30, 2021 1:09 pm
Forum: Support and Development
Topic: Stuttering in windowed mode with vsync turned on
Replies: 12
Views: 4106

Re: Stuttering in windowed mode with vsync turned on

rough.love is stuttering for me too (Windows 7) while smooth.love is indeed smooth. The stuttering seems to go away after a while, but it's kinda inconsistent as you say. I don't know if this is the actual issue, but commenting out the love.window.setTitle() call seem to solve, or at least decrease,...
by ReFreezed
Sat Aug 14, 2021 10:57 pm
Forum: Support and Development
Topic: Is this a lot for a fused exe?
Replies: 9
Views: 3573

Re: Is this a lot for a fused exe?

To reverse the fusion you can just open the exe with an archive program (7-zip or whatever) and extract the files. The fused exe is a valid .zip file because of how the zip format works. I first searched for all calls to love.* functions, and when I saw the thread stuff I just had a hunch it might b...
by ReFreezed
Sat Aug 14, 2021 9:14 pm
Forum: Support and Development
Topic: Is this a lot for a fused exe?
Replies: 9
Views: 3573

Re: Is this a lot for a fused exe?

Ok, the game does the same for me on Windows 7. After some testing, it seems the separate thread is the issue. local thread_code = [[ while true do local command = io.read() console_channel:push(command) -- Commenting this out stops the crazy memory usage. require"love.timer".sleep(0.01) -...
by ReFreezed
Sat Aug 14, 2021 8:08 pm
Forum: Support and Development
Topic: Is this a lot for a fused exe?
Replies: 9
Views: 3573

Re: Is this a lot for a fused exe?

That memory usage is crazy. What is the program? It seems unlikely that the problem has anything to do with the program being fused, specifically.
by ReFreezed
Thu Aug 12, 2021 1:22 am
Forum: Support and Development
Topic: Implementing save data
Replies: 32
Views: 15376

Re: Implementing save data

On a more basic level, to save data you need to save that data to a file. The only kind of values you can save to files are strings (which are actually just arrays of bytes under the hood) and numbers (which Lua automatically converts to strings when you try to write them to files). If you want to s...