Page 1 of 1

love.js: bad name in getProcAddress

Posted: Wed May 16, 2018 6:23 am
by danbolt
Hey team,

I'm attempting to use the latest version of love.js to run my LÖVE game in the browser. I've had some issues getting things running with the latest version, even with a simple-looking script like this:

Code: Select all

function love.draw()
  love.graphics.setColor(1, 0, 0, 1)
  love.graphics.rectangle("fill", 100, 100, 100, 100)
end
When I package this for the browser with love.js, I get the following error messages in Chrome:

Image

Has anyone seen this sort of thing before? It looks like something to do with the Emscripten compiler and SDL, but I haven't made much headway on figuring it out. I've made a GitHub issue here too just in case anyone has a similar issue and wants to discuss it there as well.

I know there are a few recent LÖVE games on itch.io that have used this player, so I'd love to hear anything in regards to distributing the game, especially if there's something I might have missed. Thanks!