aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/graphics.lua11
-rw-r--r--test/json.lua10
-rw-r--r--test/test.json4
3 files changed, 0 insertions, 25 deletions
diff --git a/test/graphics.lua b/test/graphics.lua
deleted file mode 100644
index 2ac5219..0000000
--- a/test/graphics.lua
+++ /dev/null
@@ -1,11 +0,0 @@
1open_window(800, 800, "My Game")
2set_fps(60)
3
4while window_running() do
5 begin_drawing()
6 clear_window(color.BLACK)
7 draw_info()
8 end_drawing()
9end
10
11close_window()
diff --git a/test/json.lua b/test/json.lua
deleted file mode 100644
index f656942..0000000
--- a/test/json.lua
+++ /dev/null
@@ -1,10 +0,0 @@
1local file = io.open("test/test.json", "r")
2local content = file:read("*a")
3file:close()
4
5local data = json.decode(content)
6
7print("name: " .. data.name)
8for _, n in pairs(data.numbers) do
9 print(" - number: " .. n)
10end
diff --git a/test/test.json b/test/test.json
deleted file mode 100644
index 4bd3e38..0000000
--- a/test/test.json
+++ /dev/null
@@ -1,4 +0,0 @@
1{
2 "name": "Bob",
3 "numbers": [1, 3, 5, 2]
4}