summaryrefslogtreecommitdiff
path: root/demo.lua
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-09-16 04:12:00 -0500
committersanine <sanine.not@pm.me>2023-09-16 04:12:00 -0500
commite32759f9f401f8c001e0f0f907beb3f9342680b7 (patch)
treea671d85b643e45fa03a72f2c30cfeafe743749b3 /demo.lua
parent285938592215e239a5388f8018cc12fe978b2c0a (diff)
first light
Diffstat (limited to 'demo.lua')
-rwxr-xr-xdemo.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/demo.lua b/demo.lua
new file mode 100755
index 0000000..bbf02ab
--- /dev/null
+++ b/demo.lua
@@ -0,0 +1,24 @@
+#!/usr/bin/env lua5.1
+
+local d = require 'draw'
+
+local stats = {
+ title = 'Azer',
+ alignment = "lawful neutral",
+ size = "medium",
+ type = "elemental",
+
+ ac = '17 (natural armor, shield)',
+ hp = '39 (6d8 + 12)',
+ speed = '30 ft.',
+
+ str = 17,
+ dex = 12,
+ con = 15,
+ int = 12,
+ wis = 13,
+ cha = 10,
+}
+
+
+print(d.draw(stats))