From b41a06dceaa2b4432900db98c49e55118b77fdef Mon Sep 17 00:00:00 2001 From: thing1 Date: Fri, 20 Sep 2024 17:56:55 +0100 Subject: pushed alot to the stdlib --- comp/lucas-standen-NEA/code2/examples/raylib_example.zpy | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 comp/lucas-standen-NEA/code2/examples/raylib_example.zpy (limited to 'comp/lucas-standen-NEA/code2/examples/raylib_example.zpy') 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) -- cgit v1.2.3