Building love2d games for the web with love.js and Docker

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
TheDudiful
Prole
Posts: 3
Joined: Sun Apr 19, 2015 3:59 pm

Building love2d games for the web with love.js and Docker

Post by TheDudiful »

Earlier this week I published a guide to package LÖVE games for the web with love.js and Docker. This automates the build process for converting LÖVE games to browser games. The guide goes through all steps to set it up and includes common troubleshooting tips as well!

There are some difficulties in doing this, which is why the common troubleshooting tips were included. And while the guide shows it is possible to run your LÖVE games in the web, I would still not recommend using LÖVE if you want to target the web as your main platform. But if you're using LÖVE for other platforms, love.js can and should still be used to easily show off your prototypes or share working versions of your game online.

Let me know what you think!

https://kalis.me/building-love2d-games-web-docker/
leankyr
Prole
Posts: 6
Joined: Sun Nov 08, 2020 6:09 pm

Re: Building love2d games for the web with love.js and Docker

Post by leankyr »

Hey! I am trying to follow your tutorial on windows. I Assume your tutorial is made for linux machines right?
TheDudiful
Prole
Posts: 3
Joined: Sun Apr 19, 2015 3:59 pm

Re: Building love2d games for the web with love.js and Docker

Post by TheDudiful »

Hey, yeah it's written with Mac/Linux in mind, but I think the directions should work for Windows as well as long as you have the tools installed (Node.js, NPM, Docker). I can't offer a lot of guidance on that since I don't use Windows myself, but one thing that I recommend when deveoping on Windows is installing Git Bash (part of Git for Windows, see https://git-scm.com/downloads). This gives you a Bash shell, which is much more similar to Linux/Mac than the built in cmd.exe or Powershell.
leankyr
Prole
Posts: 6
Joined: Sun Nov 08, 2020 6:09 pm

Re: Building love2d games for the web with love.js and Docker

Post by leankyr »

OK thank you!
User avatar
milon
Party member
Posts: 472
Joined: Thu Jan 18, 2018 9:14 pm

Re: Building love2d games for the web with love.js and Docker

Post by milon »

Please try to refrain from non-contributory necro posts.

Also, it may be worth noting that there's an updated love.js setup maintained by Davidobot at https://github.com/Davidobot/love.js
I believe it doesn't use Docker, if that matters to you.
Any code samples/ideas by me should be considered Public Domain (no attribution needed) license unless otherwise stated.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 3 guests