raylib-lua-legacy/examples/lua_global_api.lua
2020-03-01 14:09:48 +01:00

18 lines
324 B
Lua

setmetatable(_G, { __index = rl })
SetConfigFlags(FLAG_VSYNC_HINT)
SetTargetFPS(60)
InitWindow(800, 450, "raylib [lua] example - global api")
while not WindowShouldClose() do
BeginDrawing()
ClearBackground(RAYWHITE)
DrawText("Global API !", 350, 200, 20, LIGHTGRAY)
EndDrawing()
end
CloseWindow()