Page 1 of 1

Is there a way to create a web export from a love2d game?

Posted: Wed Jun 05, 2024 12:57 pm
by GeraltDieSocke
Basically the title.
Is there a way to export my love2d game to web?

I'm consider using love2d for next game jam I will participate in, but for me a web export is a must.

Is there a way that works good?

Re: Is there a way to create a web export from a love2d game?

Posted: Wed Jun 05, 2024 6:19 pm
by pgimeno
Hello, welcome to the forums. Take a look at this repository:

https://github.com/Davidobot/love.js

I believe there's another one based on the same codebase, made by forum user Ivan, but I can't find it right away.

Re: Is there a way to create a web export from a love2d game?

Posted: Fri Jun 07, 2024 7:50 pm
by ivan
Thank you for the mention, Pgimeno.
https://github.com/2dengine/love.js
My version uses the web assembly code by Davidobot with a better frontend written in JavaScript. No export or building step is required but you need a web server (preferably Apache)