From 67d08e1f07d6eb261b98e90e6c803d64c22c1969 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Thu, 14 May 2020 11:27:58 -0500 Subject: Add text item, create tutorial stages --- src/paperflight/static/items.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/paperflight/static/items.js') 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 -- cgit v1.2.3