+package.path = "lua_modules/share/lua/5.1/?.lua;lua_modules/share/lua/5.1/?/init.lua;" .. package.path
+package.cpath = "lua_modules/lib/lua/5.1/?.so;" .. package.cpath
+
+local inifile = require "inifile"
+local serpent = require "serpent"
+require "xmlrpc.http"
+
+local ui = require "ui"
+local rpc = require "rpc"
+
+local app = nil
+local value = 0
+
+function love.load()
+ app = rpc.XMLRPCWrapper "http://localhost:8000/RPC2"
+
+ ui.register_component "test" {
+ test = function() end
+ }
+
+ value = app.get()
+
+ local data = inifile.parse("test.ini")
+ print(serpent.block(data))
+
+ local info = app.get_some_info()
+ for k, v in pairs(info) do print(k, v) end
+end
+
+
+local last_down = false
+function love.update(dt)
+ if love.keyboard.isDown "escape" then
+ love.event.quit()
+ end
+
+
+ local down = love.keyboard.isDown "space"
+ if down and not last_down then
+ value = app.add_and_get()
+ end
+
+ last_down = down
+end
+
+function love.draw()
+ love.graphics.print("Hello, World! " .. tostring(value), 100, 100)
+end