Search found 1150 matches

by Gunroar:Cannon()
Thu Mar 20, 2025 1:07 pm
Forum: Ports
Topic: How to add https to love.js
Replies: 5
Views: 885

Re: How to add https to love.js

I'm away from my coding environment right now, but here's how AI said I could go about it: // Exposing a JavaScript function to Lua lovejs.bindGlobal("myJsFunction", function() { console.log("This is a JavaScript function!"); return "Hello from JavaScript!"; });
by Gunroar:Cannon()
Thu Mar 20, 2025 10:31 am
Forum: Ports
Topic: How to add https to love.js
Replies: 5
Views: 885

Re: How to add https to love.js

like it how isn't there a way to expose javascript functions or variables to the global namespace lua for love.js somehow?
by Gunroar:Cannon()
Wed Mar 19, 2025 5:56 pm
Forum: Ports
Topic: How to add https to love.js
Replies: 5
Views: 885

Re: How to add https to love.js

Yes, I know. And I've also successfully built versions without needing 12. I was asking AI and it said that I had to expose a module variable that can call the API in a script tag of the html file, to Lua.
by Gunroar:Cannon()
Wed Mar 19, 2025 8:52 am
Forum: Ports
Topic: So love.js doesn't support goto?
Replies: 3
Views: 1088

Re: So love.js doesn't support goto?

Yeah, thanks everyone. It seems gotos really are bad overall. I only had like 5 in my whole +100 file code base I think.l, so even libraries don't use it that much.
by Gunroar:Cannon()
Wed Mar 19, 2025 8:51 am
Forum: Ports
Topic: How to add https to love.js
Replies: 5
Views: 885

How to add https to love.js

It seems like something that would be easy to do but I have trouble doing. I'm using Makelove to make the project, and luahttps as a native file won't work with web, but I believe is should be able to somehow allow Lua to make https calls.
by Gunroar:Cannon()
Wed Mar 12, 2025 12:11 pm
Forum: Ports
Topic: So love.js doesn't support goto?
Replies: 3
Views: 1088

So love.js doesn't support goto?

I just tried to port one of my games to love.js (I used makelove to build) but it turns out it gives a syntax error for goto since it uses an old version of lua(?). My "engine" (a looot of reused code and libs in a folder) use gotos probably quite often. Is there truly no workaround but to...
by Gunroar:Cannon()
Thu Jan 23, 2025 1:56 am
Forum: Support and Development
Topic: How to make a canvas more blurred
Replies: 1
Views: 976

How to make a canvas more blurred

Hi all :3 In tile based game I'm making with FOV I want to do a lightmap sort of thing for smoother soft light. I've kind of accomplished it but I want to see if I can make the map blurrier. I'm drawing a canvas with rectangles drawn onto it (1x1px for each tile, to be scaled up to x125, set to line...
by Gunroar:Cannon()
Wed Dec 25, 2024 9:30 pm
Forum: Games and Creations
Topic: Hotplate app for your phone
Replies: 21
Views: 20063

Re: Hotplate app for your phone

Wow this thread exists :rofl: . All the comments here are gold :P
by Gunroar:Cannon()
Mon Nov 18, 2024 9:44 pm
Forum: Support and Development
Topic: Help with exporting to an APK on a phone
Replies: 1
Views: 1340

Re: Help with exporting to an APK on a phone

You can use github actions to automatically build an apk. * First get a GitHub account, * Then clone love-android respitory, * Follow the instructions on the page to upload game.love (may need to use an older branch as love 12 doesn't support just uploading the love file and instead the actual conte...
by Gunroar:Cannon()
Tue Nov 12, 2024 6:54 am
Forum: Support and Development
Topic: Thread killing help with HTTPS
Replies: 5
Views: 1679

Re: Thread killing help with HTTPS

Luahttps doest support timeout. I made a topic about this before with little response so I made my own timeout. Worked fine if not for that issue of stopping unused threads.