Logo

index : raylib-jai

---

  • summary
  • about
  • tree
  • log
  • branches
<< path: root/public/raylib-jai.git/html/test.jai blob: 362490723ca72949ebed239a2949b9069b1e9e69 [raw] [clear marker]

        
0#import "Basic";
1#import,file "Raylib/module.jai";
2
3/** jai -quiet test.jai +Autorun */
4
5main :: () {
6 SetTraceLogLevel(.LOG_NONE);
7
8 InitWindow(800, 600, "Test");
9 defer CloseWindow();
10
11 SetTargetFPS(60);
12
13 while !WindowShouldClose() {
14 BeginDrawing();
15 defer EndDrawing();
16
17 ClearBackground({ 42, 42, 60, 255 });
18
19 DrawFPS(10, 10);
20 DrawText(TextFormat("Frame Time: %f s", GetFrameTime()), 10, 30, 20, WHITE);
21 }
22
23}
24
25
Copyright 2026  E766CB298A6D1E64 | Git-Thing heavily inspired by cgit