Updated Lua examples

Most of the examples already working! Only some of them still fail,
mostly related to data arrays...
This commit is contained in:
raysan5 2016-08-06 19:29:58 +02:00
parent 7f9513fbf4
commit 865b216ebe
17 changed files with 69 additions and 78 deletions

View file

@ -47,7 +47,7 @@ local positions = {}
for i = 1, 8 do
positions[i] = Vector2(0, 0)
positions[i].x = screenWidth/2 - MeasureTextEx(fonts[i], messages[i], fonts[i].size*2, spacings[i]).x/2
positions[i].y = 60 + fonts[i].size + 50*i
positions[i].y = 60 + fonts[i].size + 45*(i - 1)
end
local colors = { MAROON, ORANGE, DARKGREEN, DARKBLUE, DARKPURPLE, LIME, GOLD, BLACK }