Documentation and better cmakelist.

This commit is contained in:
jussi
2022-02-20 20:37:39 +02:00
parent 6e4fdd3b3a
commit 8182a5f1b6
9 changed files with 229 additions and 39 deletions

23
examples/window/main.lua Normal file
View File

@@ -0,0 +1,23 @@
local textColor = BLACK
local textPos = { 192, 200 }
function init()
RL_SetWindowTitle( "First window" )
end
function process( delta )
if RL_IsKeyPressed( KEY_ENTER ) then
textColor = BLUE
textPos = { 230, 230 }
end
if RL_IsKeyPressed( KEY_SPACE ) then
textColor = BLACK
textPos = { 192, 200 }
end
end
function draw()
RL_ClearBackground( RAYWHITE );
RL_DrawText( 0, "Congrats! You created your first window!", textPos, 20, 2, textColor );
end