Page 1 of 1

can do

Posted: Fri Sep 15, 2017 1:06 am
by 2dmk
For example, I did game in windows.But I want to send to iphone.Can do? Game that was made in windows ,which can directly send to iphone to play? Or only ios system can do it?
Thanks.

Re: can do

Posted: Tue Nov 21, 2017 3:47 am
by HDPLocust
You can create game-loader.
Like redefined 'require' function, for loading lua-scripts from web-server, images and other sources etc. And open web-serwer with you'r love sources.

Or write something like ftp/smb on lua, and 'mount' network directory with sources.

Of course, main.lua can looks like this:

Code: Select all

local oldreq = require

function require(file) -- web loader
    local url = 'www.myweb.com/mygamesources/'
    local http = oldreq 'socket.http'
    local source = http.request(url..(file):gsub('.', '/')..'.lua')
    local f = loadstring(source)
    return f()
end
-- 

function love.load()
   game = require'engine.core' -- 'create request to www.myweb.com/mygamesources/engine/core.lua' and load it as code
   game:load() -- if core returns object, of course
end