() -> Rules { gitignore :: #string STR_END # Jai .build /bin STR_END; main_jai :: #string STR_END #import "Basic"()( MEMORY_DEBUGGER = MEMORY_DEBUGGER_ENABLED ); #import "Math"; #import "raylib"; main :: () { #if MEMORY_DEBUGGER_ENABLED defer report_memory_leaks(); log("Hello, Sailor!"); //SetTraceLogLevel(.LOG_NONE); //SetConfigFlags(.FLAG_MSAA_4X_HINT); InitWindow(800, 600, "Template"); defer CloseWindow(); SetTargetFPS(60); while !WindowShouldClose() { { BeginDrawing(); defer EndDrawing(); ClearBackground({ 42, 42, 60, 255 }); DrawFPS(10, 10); DrawText(TextFormat("Frame Time: %f s", GetFrameTime()), 10, 30, 20, WHITE); } //reset_temporary_storage() } } STR_END; return .{ arg_name = "ray", description = "Raylib starter template", template = "templates/raylib/template.jai", dirs_in_workplace = .[ "src", "modules" ], files = .[ .{ ".gitignore", gitignore }, .{ "src/main.jai", main_jai }, .{ "README.md", "" }, ], }; }();