1°/ How can we Hide Lua source code?
Because it's note cool, when you're programming a little network game, and user can easy cheat with source code...
2°/ In this tutorial : http://wiki.ps2dev.org/psp:lua_player:tutorial
I have'nt understant this :
Code: Select all
function drawTile(tile, x, y)
local tileX = math.mod(tile, 4)
local tileY = math.floor(tile / 4)
screen:blit(16 * x, 16 * y, tiles, 17 * tileX + 1, 17 * tileY + 1, 16, 16, false)
end
Pecisely this :
Code: Select all
screen:blit(16 * x, 16 * y, tiles, 17 * tileX + 1, 17 * tileY + 1, 16, 16, false)
17*TileX +1, 17*TileY, What's this? The coordinates where the tile while be taken in the picture? Why 17*? why +1?
and this : 16, 16, false ?
Sorry, I havent found help for this function.
and why local tileX = math.mod(tile, 4)
local tileY = math.floor(tile / 4)
? Can you tell me about this?
I've found help for math function hier http://lua-users.org/wiki/MathLibraryTutorial but...
Thank you!!