Search found 152 matches

by glitchapp
Fri Jan 27, 2023 6:55 am
Forum: Support and Development
Topic: Wrapper / abstraction layer mechanism that download needed files on demand
Replies: 12
Views: 455

Re: Wrapper / abstraction layer mechanism that download needed files on demand

It is nice that the library will be added on the next version and that it can be used to download from secure addresses. I wonder if I can then request from an https site like this:

Code: Select all

 filename = https.request(filename)
or do I need to add any other api request to accomplish that.
Thanks!
by glitchapp
Tue Jan 24, 2023 8:57 am
Forum: Support and Development
Topic: Wrapper / abstraction layer mechanism that download needed files on demand
Replies: 12
Views: 455

Re: Wrapper / abstraction layer mechanism that download needed files on demand

There are security implications and HTTPS is not supported out of the box by Love2D. Actually, it is now not hard to use https, as it will be implemented in 12.0 via lua-https and you can also use prebuild library from here for older versions (just put it in folder with your application and require...
by glitchapp
Mon Jan 23, 2023 10:34 am
Forum: Support and Development
Topic: Wrapper / abstraction layer mechanism that download needed files on demand
Replies: 12
Views: 455

Re: Wrapper / abstraction layer mechanism that download needed files on demand

Of note, you may also want to do any such lazy loading on a separate thread, instead of blocking the main thread for N amount of time due to the downloads. That's a good idea but I will be happy if I manage to implement it no matter if it stops the main thread. Once done I will see how can I improv...
by glitchapp
Mon Jan 23, 2023 9:20 am
Forum: Support and Development
Topic: Wrapper / abstraction layer mechanism that download needed files on demand
Replies: 12
Views: 455

Re: Wrapper / abstraction layer mechanism that download needed files on demand

The concept you are searching for is called lazy loading . Here is a sketch in pseudo code: function readFile(filename) if love.filesystem.getInfo(filename) == nil then -- download file end return love.filesystem.read(filename) end This will check if the file is already downloaded. If not it will d...
by glitchapp
Wed Jan 18, 2023 12:48 pm
Forum: Support and Development
Topic: Wrapper / abstraction layer mechanism that download needed files on demand
Replies: 12
Views: 455

Wrapper / abstraction layer mechanism that download needed files on demand

Hello, I'm searching for a solution for big projects like some of the one I created to download the files on demand as the player progress through the game. Someone advised me to implement an abstraction layer / wrapper to accomplish this, I have however no idea where to start and wonder if anyone h...
by glitchapp
Sat Dec 17, 2022 8:32 am
Forum: Support and Development
Topic: Turn Windows HDR on / off from love2d
Replies: 2
Views: 440

Re: Turn Windows HDR on / off from love2d

I'm really happy to know I'm not the first who requested the feature. I cross the fingers! I think many games would look a lot better if you have the right screen and with the right graphics...
by glitchapp
Fri Dec 16, 2022 7:32 am
Forum: Support and Development
Topic: Turn Windows HDR on / off from love2d
Replies: 2
Views: 440

Turn Windows HDR on / off from love2d

Hello, Since HDR is being already natively supported on Windows and OS / X and directX already support checking if a screen is able to display HDR and turning it on and off from the program I wonder if there are any plans to implement this on love2d in the future or if there is any workaround to mak...
by glitchapp
Sat Nov 26, 2022 2:39 pm
Forum: Support and Development
Topic: Help building love2d for sailfish
Replies: 0
Views: 674

Help building love2d for sailfish

Hi, since I'm stucked trying to do this and I can't find any thread on the forum regarding this problem I decided to create a threat to try to solve it. I'm trying to build love2d for sailfish os for 64 bits, the source is here: https://github.com/savegame/love/tree/sailfish just to clarify, the sou...
by glitchapp
Wed Sep 07, 2022 8:41 am
Forum: Games and Creations
Topic: Stealth game prototype
Replies: 0
Views: 2599

Stealth game prototype

This is an attempt at creating a stealth game. https://codeberg.org/glitchapp/stealthgame/media/branch/main/screenshots/stealthscreenshot2.jpg There are hundred of similar games but I'm inspired by Terry Cavanagh's Tiny heist game: https://terrycavanaghgames.com/tinyheist/ I'm attempting to implemen...
by glitchapp
Wed Sep 07, 2022 8:13 am
Forum: Support and Development
Topic: How to make an ai that goes to a specific point
Replies: 10
Views: 4866

Re: How to make an ai that goes to a specific point

Then why are you stating to use box2d? Anyway for tiles, i tried writing a tutorial for that a while back:pathfinding.love Finally an easy library that I think I could use on my stealth game prototype, just in case anyone want to test the game (and / or help with the implementation): https://codebe...