diff options
author | Mark Powers <markppowers0@gmail.com> | 2020-05-14 11:27:58 -0500 |
---|---|---|
committer | Mark Powers <markppowers0@gmail.com> | 2020-05-14 11:27:58 -0500 |
commit | 67d08e1f07d6eb261b98e90e6c803d64c22c1969 (patch) | |
tree | ad1b3b0f67cecb9dadb9a95b50f8fa7d74ec9b12 /src/paperflight/static/items.js | |
parent | 0ec9047997e3ecaf7c4973baaa2e7b6b52e8144c (diff) |
Add text item, create tutorial stages
Diffstat (limited to 'src/paperflight/static/items.js')
-rw-r--r-- | src/paperflight/static/items.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/paperflight/static/items.js b/src/paperflight/static/items.js index 47a434e..09c9888 100644 --- a/src/paperflight/static/items.js +++ b/src/paperflight/static/items.js @@ -46,4 +46,12 @@ function constructRect(x, y, width, height, state){ update: updateSwitchRect, x, y, width, height, state } +} +function constructText(x, y, text, font){ + return { + draw: drawText, + update: () => {}, + style: "black", + x, y, text, font + } }
\ No newline at end of file |