aboutsummaryrefslogtreecommitdiff
path: root/rhodes.lua
diff options
context:
space:
mode:
authorgretchen <gretchen@gnar.cool>2020-07-24 00:04:37 -0700
committergretchen <gretchen@gnar.cool>2020-07-24 00:04:37 -0700
commita38250123d31df15177ae51b2fb16d6ff21c7abe (patch)
treedabce828ff6351af0cab35e6e9833e17ffcc87a4 /rhodes.lua
parent8795f0a601e790b3bd859426367c46b55ff845dc (diff)
downloadrhodes-a38250123d31df15177ae51b2fb16d6ff21c7abe.tar.gz
rhodes-a38250123d31df15177ae51b2fb16d6ff21c7abe.zip
Rhodes pixel art
Diffstat (limited to 'rhodes.lua')
-rw-r--r--rhodes.lua16
1 files changed, 12 insertions, 4 deletions
diff --git a/rhodes.lua b/rhodes.lua
index fc88e35..04a8b1a 100644
--- a/rhodes.lua
+++ b/rhodes.lua
@@ -7,10 +7,18 @@ engine.name = "Rhodes"
local MusicUtil = require "musicutil"
local ControlSpec = require "controlspec"
-function redraw()
- screen.clear()
- screen.move(64, 32)
- screen.text_center("rhodes.")
+local _dirname
+function dir(f)
+ if not _dirname then
+ source = string.gsub(debug.getinfo(1,'S').source, "@", "")
+ _dirname = string.gsub(source, "[^/.]+.lua", "")
+ end
+ return _dirname.."/"..f
+end
+
+function redraw(level)
+ screen.clear();
+ screen.display_png(dir("rhodes.png"), 0, 0);
screen.update()
end