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.
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
Need help in Creating a grid
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
热门文章
GameCenter LeaderBoards and Achievements Enabled Through OpenFeint
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
相关文章
TableView buttons and Director
Corona 2.0 Beta 5 now available for download
Basic Android differences/considerations
portraitUpsideDown in the simulator
Director Class swipe for a game help
Syntax error: E:\main.lua:54: unexpected symbol near '['
Visual glitch on scene fade (if new scene object(s) are initiated offscreen)
What is the best(fastest, lightest) way to implement audio for Android?
Syntax highlighting
Sleepy Game Released
Corona 2.0 Beta 5 now available for download
Basic Android differences/considerations
portraitUpsideDown in the simulator
Director Class swipe for a game help
Syntax error: E:\main.lua:54: unexpected symbol near '['
Visual glitch on scene fade (if new scene object(s) are initiated offscreen)
What is the best(fastest, lightest) way to implement audio for Android?
Syntax highlighting
Sleepy Game Released
corona forums © 2003-2011