summaryrefslogtreecommitdiff
path: root/comp/lucas-standen-NEA/code2/examples/raylib_example.zpy
diff options
context:
space:
mode:
Diffstat (limited to 'comp/lucas-standen-NEA/code2/examples/raylib_example.zpy')
-rw-r--r--comp/lucas-standen-NEA/code2/examples/raylib_example.zpy16
1 files changed, 16 insertions, 0 deletions
diff --git a/comp/lucas-standen-NEA/code2/examples/raylib_example.zpy b/comp/lucas-standen-NEA/code2/examples/raylib_example.zpy
new file mode 100644
index 0000000..931c0e4
--- /dev/null
+++ b/comp/lucas-standen-NEA/code2/examples/raylib_example.zpy
@@ -0,0 +1,16 @@
+(defun main int)
+ (InitWindow 800 800 "test")
+ (SetTargetFPS 40)
+ (let x:int 0)
+ (let y:int 0)
+ (for i:int 0 (= (WindowShouldClose) 0) 0)
+ (BeginDrawing)
+ (ClearBackground RAYWHITE)
+ (DrawText "test" x y 40 RED)
+ (EndDrawing)
+
+ (set x (+ x 5))
+ (set y (+ y 5))
+ (endfor)
+ (CloseWindow)
+(endfun)