Blame view

main.lua 932 Bytes
Phil Hagelberg committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
local polywell = require("polywell")
local fs_for = require("polywell.fs")

pp = function(x) print(require("lib.inspect")(x)) end

love.keyreleased = polywell.keyreleased
love.keypressed = polywell.keypressed
love.textinput = polywell.textinput
love.wheelmoved = polywell.wheelmoved
love.mousepressed = polywell.mousepressed
love.mousereleased = polywell.mousereleased
love.mousemoved = polywell.mousemoved
love.mousefocus = polywell.mousefocus
love.draw = polywell.draw

love.load = function(args)
   love.graphics.setFont(love.graphics.newFont("polywell/inconsolata.ttf", 14))
   love.keyboard.setTextInput(true)
   love.keyboard.setKeyRepeat(true)
20 21
   love.math.setRandomSeed(os.time())
   local maze = require("maze")
Phil Hagelberg committed
22 23 24 25
   require("polywell.config.edit")
   require("polywell.config.lua_mode")
   require("polywell.config.emacs_keys")

26
   polywell.fs = fs_for(".")
Phil Hagelberg committed
27
   polywell.open("*maze*", nil, "maze")
28
   maze.random_maze()
Phil Hagelberg committed
29
end