Here is my issue: I want to get time from http://worldtimeapi.org/
By running
Code: Select all
http = require("socket.http")
tempVar = http.request("http://worldtimeapi.org/api/timezone/Europe/London.txt")
I found this love.js git issue which may be relevant, but I'm not sure: https://github.com/TannerRogalsky/love.js/issues/26
So... There is a way to fix it or do it in some other way?
EXTRA: I can get the time with javascript in my index just fine. I also found this cute thing: https://fengari.io/ that allows me run lua/javascript very easily. BUT I couldn't figure a way of making the gate between my game and the index page scripts, making them interact and trigger events from my game. I don't even know if this is possible, but would be cool because I could then use https://docs.kongregate.com/docs/javascript-api as well!