[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

[m8n] Love - Install S8 in a clean Löve installation

  1. Install Löve on your desktop(or android) device
  2. Ensure it is installed and runs OK
  3. Download m8n-console.zip
  4. Edit your /lovegame/main.lua file to allow remote U8 development

To include S8 kernel, and enable U8 development tools the file main.lua can be something like:
local m8n="C:/m8n/"
dofile(m8n.."s8.snapshot.lua")
print(("'3+4=',(3+4)"):evaluate())
--print(smalltalk.Object:selectors():sorted():asLiteral())

dofile(m8n.."s8/library/luasocket.st.lua")
dofile(m8n.."s8/library/SimpleHTTPServer.st.lua")
dofile(m8n.."s8/library/SimpleJson.st.lua")
dofile(m8n.."s8/library/systemServer/SystemServer.st.lua")
dofile(m8n.."s8/library/swiki/swiki.st.lua")
dofile(m8n.."s8/library/swiki/swikiLove.st.lua")
dofile(m8n.."library/love/love.st.lua")
dofile(m8n.."library/love/loveSamples.st.lua")

smalltalk.Sample = "loaded"
code=[[
  SystemServer silent: true.
  SystemServer start.
  Sample := #started.
]]
code:fileIn()

x=0
function love.draw()
	smalltalk.SystemServer:current():step()
	x = x + 8
	love.graphics.print(tostring(smalltalk.Sample), x, 300)
	if x>800 then x=0 end
end