cleanup top level folder

This commit is contained in:
Alexander Griffith 2021-02-01 20:20:29 -05:00
parent e5d33b910c
commit f791534c00
4 changed files with 0 additions and 158 deletions

View file

@ -1,76 +0,0 @@
local counter = 0 local time = 0
local function draw(message)
return love.graphics.print(("This window should close in %0.2f seconds"):format((3 - time)), 32, 16) end
local function keypressed(key, set_mode)
return love.event.quit() end local function update(dt, set_mode) if (counter < 65535) then counter = (counter + 1) else counter = 0 end time = (time + dt)
if (time > 3) then return love.event.quit() end end return {draw = draw, keypressed = keypressed, update = update}

View file

@ -1,4 +0,0 @@
(fn a [b c]
(+ b c))
{: a}

View file

@ -1,2 +0,0 @@
local function a(b, c)
return (b + c) end return {a = a}

View file

@ -1,76 +0,0 @@
local repl = require("lib.stdio")
local canvas = nil do local w, h = love.window.getMode()
canvas = love.graphics.newCanvas(w, h) end local scale = 1
local mode = require("mode-intro")
local function set_mode(mode_name, ...)
mode = require(mode_name)
if mode.activate then return mode.activate(...) end end love.load = function() canvas:setFilter("nearest", "nearest") return repl.start() end love.draw = function() love.graphics.setCanvas(canvas) love.graphics.clear() love.graphics.setColor(1, 1, 1) mode.draw() love.graphics.setCanvas() love.graphics.setColor(1, 1, 1) return love.graphics.draw(canvas, 0, 0, 0, scale, scale) end love.update = function(dt) return mode.update(dt, set_mode) end love.keypressed = function(key) if (love.keyboard.isDown("lctrl", "rctrl", "capslock") and (key == "q")) then return love.event.quit() else return mode.keypressed(key, set_mode) end end return love.keypressed