Codea Tutorials #011--TicTacToe in Lua, iPad Programming (Part 1)

preview_player
Показать описание
Here's a short tutorial on how to create a basic TicTacToe game in Lua on the iPad with Codea.
Рекомендации по теме
Комментарии
Автор

should've made a Between(val, low, high) { return low <= val && val <= high; } function and stored each cell in the table as a class object so your for() loop could just be '
for _, cell in pairs(board) do
if Between(CurrentTouch.x, cell.origX, cell.extentX) and Between(CurrentTouch.y, cell.origY, cell.extentY) then
rect(cell.origX, cell.origY, cell.extentX, cell.extentY)
return
end
end

MatkatMusic
Автор

For some reason it's not working it says error

mayonaise
Автор

The screen is so small. RIP multi-task

joshuarobinson
visit shbcf.ru