Search found 578 matches

by MrFariator
Thu Apr 17, 2025 9:10 am
Forum: Support and Development
Topic: Math.atan gives different values?
Replies: 1
Views: 443

Re: Math.atan gives different values?

I believe math.atan and math.atan2 were combined to a single function in lua 5.3. LÖVE uses luajit, which is an offshoot of 5.1, with some stuff taken from 5.2. As such, what you're probably after is math.atan2: print(math.atan(1)) -- prints: 0.78539816339745 print(math.atan2(1,0)) -- prints: 1.5707...
by MrFariator
Mon Apr 07, 2025 12:55 am
Forum: Support and Development
Topic: Mitigating Code Bloat with Input Handling
Replies: 4
Views: 1148

Re: Mitigating Code Bloat with Input Handling

For implementing that Observer design pattern, I'm still unsure exactly how that would look like. I have some experience setting that up in Unity, where it's simple, but I'm unsure how I would register an event listener to a function/var/state change in Love. Right now, I do have implemented charac...
by MrFariator
Sun Apr 06, 2025 11:46 am
Forum: Support and Development
Topic: Help with "combo" mechanics.
Replies: 16
Views: 2908

Re: Help with "combo" mechanics.

Use a buffer to remember the last n keystrokes. Where n is the length of the longest combo. Every time the player presses a button, we add the key to the buffer and remove the oldest entry. So if the player has pressed up , down , left and right and now presses kick we add kick to the buffer and re...
by MrFariator
Fri Apr 04, 2025 8:48 pm
Forum: Support and Development
Topic: Mitigating Code Bloat with Input Handling
Replies: 4
Views: 1148

Re: Mitigating Code Bloat with Input Handling

Effectively, the way I like to do it: 1) love.keypressed, love.gamepadpressed and similar callbacks take note of the button pressed, and put it in a table. Use a time-stamp or something too, if you want to know how long ago a button was pressed (for example, to implement "repeating" inputs...
by MrFariator
Tue Mar 25, 2025 3:36 pm
Forum: Support and Development
Topic: Fused Love2D Windows Distribution: Offloading Media Files?
Replies: 8
Views: 3446

Re: Fused Love2D Windows Distribution: Offloading Media Files?

Because my game includes extended audio tracks of nature, say some 10 files of 10 MB each. Together with game assets, I had a 300 MB fused .exe file. I was just thinking ahead and envisioned scaling the game horizontally to begin with. Given that I continuously record audio and prepare visuals, I t...
by MrFariator
Tue Mar 25, 2025 3:09 pm
Forum: Support and Development
Topic: Help in publishing game made in love2d in steam.
Replies: 2
Views: 1431

Re: Help in publishing game made in love2d in steam.

The steps are roughly as follows: 1. Create a Steam account 2. Pay the Steam Direct fee, see the page for that here 3. After you have access to Steamworks, set up an application 4. Follow the uploading to Steam instructions to setup your application depot, launch options, etc 5. Upload your game via...
by MrFariator
Sun Mar 23, 2025 5:32 pm
Forum: General
Topic: What Do LOVE2D Developers Actually Want?
Replies: 14
Views: 4636

Re: What Do LOVE2D Developers Actually Want?

better security and sandboxing Something like that doesn't feel like something love2d itself can solve PC-side, because any rogue agent could always develop their own program (without the involvement of love2d, or by removing any sandboxing features from love2d) to target whatever save files or dat...
by MrFariator
Thu Mar 20, 2025 1:17 pm
Forum: Support and Development
Topic: Fused Love2D Windows Distribution: Offloading Media Files?
Replies: 8
Views: 3446

Re: Fused Love2D Windows Distribution: Offloading Media Files?

"Do not care about production file size unless your fused .exe exceeds 1gb" I don't think there is anything specifically wrong with having it exceed 1gb either. Your project will ultimately be as large as it needs to be, and as small as you can make it. Löve itself can't influence that. T...
by MrFariator
Tue Mar 18, 2025 10:37 am
Forum: Support and Development
Topic: can not download love in macbook
Replies: 1
Views: 1085

Re: can not download love in macbook

That is a generic pop-up MacOS gives to any application that hasn't been digitally signed. It is essentially a heavy-handed warning to try and stop the average user from downloading random executables off the internet and running them, because they could contain viruses or the like. Basically, an in...
by MrFariator
Tue Mar 18, 2025 10:09 am
Forum: Support and Development
Topic: Fused Love2D Windows Distribution: Offloading Media Files?
Replies: 8
Views: 3446

Re: Fused Love2D Windows Distribution: Offloading Media Files?

You could distribute any resources (audio, images, video, etc) in a separate folder from your fused executable, and then at runtime mount these media folders, sure (see love.filesystem.mount , although I imagine this will be easier with löve 12.0 ). However, that is still probably more effort than i...