From da60da42c06c0fd476364ab0a381e266b574d2d4 Mon Sep 17 00:00:00 2001 From: Brendon Walsh Date: Fri, 22 Nov 2024 23:37:35 -0500 Subject: [PATCH] love.js v11.5 and relative dependency loading --- Makefile | 6 ++++++ templates/web/index.html | 2 +- templates/web/love-game.js | 26 +++++++++++++++----------- 3 files changed, 22 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index c57da0287..9686817bd 100644 --- a/Makefile +++ b/Makefile @@ -31,6 +31,12 @@ love.js: build/hawkthorne.love mkdir -p build/web npm install npx love.js -t "Journey to the Center of Hawkthorne" -m 77594624 -c build/hawkthorne.love build/web + ######## Temporary LÖVE v11.5 until new version is published on NPM ######## + $(WGET) https://github.com/Davidobot/love.js/raw/refs/heads/master/src/compat/love.js + $(WGET) https://github.com/Davidobot/love.js/raw/refs/heads/master/src/compat/love.wasm + mv love.js build/web/ + mv love.wasm build/web/ + ################################### END #################################### cp templates/web/* build/web/ build/hawkthorne.love: $(TILEMAPS) src/* diff --git a/templates/web/index.html b/templates/web/index.html index df2cf5e18..81e3221b1 100644 --- a/templates/web/index.html +++ b/templates/web/index.html @@ -24,7 +24,7 @@ - +