love.js standalone player

Discuss any ports of LÖVE to different platforms.
User avatar
ivan
Party member
Posts: 1915
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

love.js standalone player

Post by ivan »

The standalone version of the love.js player allows you to run Love2D game on the web. This player is based on the previous work of Davidobot and Tanner Rogalsky using Emscripten.

Repository:
https://github.com/2dengine/love.js

Live demos:
https://2dengine.com/arena
https://2dengine.com/superchains
https://2dengine.com/collisions
https://2dengine.com/commando

What's new:
- Cleaned up the frontend
- Refactored the game.js file.
- Cookie consent dialog for GDPR compliance
- New and cool looking loading screen
- Fixed the cross-origin issue on Apache with a simple .htaccess file

Todo:
- Better memory allocation
gianmichele
Citizen
Posts: 64
Joined: Tue Jan 14, 2014 11:03 pm

Re: love.js standalone player

Post by gianmichele »

This works incredibly well! I think it should be included as an official platform.
User avatar
ivan
Party member
Posts: 1915
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

Re: love.js standalone player

Post by ivan »

Thank you. Most of the credit goes to Davidobot and Tenner.
Please note that there are some known issues in terms of the memory management so it's still not worthy of an official release. Perhaps love.js may take off in the future if more people get involved.
alejandroalzate
Citizen
Posts: 67
Joined: Sat May 08, 2021 9:45 pm

Re: love.js standalone player

Post by alejandroalzate »

pleaseee we wanna an web port
take ur time but realase it

Code: Select all

target = boardIndex.getWhosPeekingThisLine()
target:setObey(true)
User avatar
ivan
Party member
Posts: 1915
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

Re: love.js standalone player

Post by ivan »

alejandroalzate, the full source code is available in the repository mentioned above.
If you want to see more development and updates then please consider supporting Davidobot and Tanner.

...or help me out by supporting 2dengine and our games
User avatar
ivan
Party member
Posts: 1915
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

Re: love.js standalone player

Post by ivan »

Just pushed another update to the player.
It now shows a red "X" symbol when an error occurs.
I have also addressed the Emscripten "Expected 'application/wasm'" issue using an .htaccess file
gianmichele
Citizen
Posts: 64
Joined: Tue Jan 14, 2014 11:03 pm

Re: love.js standalone player

Post by gianmichele »

This is also nice for quick testing without a web server

https://servefolder.dev/
User avatar
ivan
Party member
Posts: 1915
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

Re: love.js standalone player

Post by ivan »

Just pushed another update that forces compatibily mode on mobile devices.
User avatar
Popolon
Prole
Posts: 25
Joined: Mon Nov 07, 2016 11:03 am
Location: France/Paris

Re: love.js standalone player

Post by Popolon »

Thank you very much for you work.

I have the following error in firefox console (translated from my language version):

CanvasRenderingContext2D is obsolet Use tabs.captureTab API instead for extensions https://developer.mozilla.org/fr/docs/M ... captureTab

A round circle turn, but the application doesn't work.
User avatar
Popolon
Prole
Posts: 25
Joined: Mon Nov 07, 2016 11:03 am
Location: France/Paris

Re: love.js standalone player

Post by Popolon »

managed to make it work, under nginx, with the following rules in server{} section:

Code: Select all

  add_header Cross-Origin-Opener-Policy "same-origin";
  add_header Cross-Origin-Embedder-Policy "require-corp";
  add_header Set-Cookie "Path=/; HttpOnly; Secure";
Thanks a lot !!!!
Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 1 guest