summaryrefslogtreecommitdiff
path: root/examples/graphics.lua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/graphics.lua')
-rw-r--r--examples/graphics.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/graphics.lua b/examples/graphics.lua
new file mode 100644
index 0000000..2ac5219
--- /dev/null
+++ b/examples/graphics.lua
@@ -0,0 +1,11 @@
+open_window(800, 800, "My Game")
+set_fps(60)
+
+while window_running() do
+ begin_drawing()
+ clear_window(color.BLACK)
+ draw_info()
+ end_drawing()
+end
+
+close_window()