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.
can do
Re: can do
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:
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
Science and violence
Who is online
Users browsing this forum: No registered users and 3 guests