Pop.Box/spec/love.moon

23 lines
439 B
Plaintext
Raw Normal View History

2016-08-21 05:29:16 +00:00
lfs = require "lfs"
return {
2017-08-28 08:49:12 +00:00
getVersion: ->
0, 10, 1, "Super Toast"
filesystem:
getDirectoryItems: (path) ->
ok, results = pcall ->
results = {}
for file in lfs.dir lfs.currentdir! .. "/" .. path
table.insert results, file
return results
if ok
return results
else
return {}
graphics:
getWidth: ->
return 1280
getHeight: ->
return 720
2016-08-21 05:29:16 +00:00
}