Need help in Creating a grid

Hey guys am very new to corona/Lua. I am trying to a connect dots kind of game. Here there is a grid of dots (no. of dots increase at each level) and players need to tap space between two adjacent dots to form a wall. Could anyone please help me. I would really appreciate it.

Go through the beginner tutorials to learn how to put display objects onto the screen. Then write "for" loops to position the objects into regular spaces:

1
2
3
4
5
6
7
for i = 1, 10 do
  for j = 1, 10 do
    local dot = newImage("dot.png")
    dot.x = i
    dot.y = j
  end
end

Hi jhocking that was helpful :), I really appreciate it. By the way do you know whether it is possible or not to use Lua to create visuals mapped to some audio. Kinda like how quartz composer is used to make those music representations. Making a game that needs those kinds of effects..

views:1532 update:2011/10/6 9:28:12
corona forums © 2003-2011