Hi Am new to Corona. I am facing a problem while executing the code. how ever I am not able to see the console to see the problem.
Any help will be appreciated.
Thanks.
display.setStatusBar(display.HiddenStatusBar)
local physics = require “physics”
physics.start()
physics.setGravity(0,0)
system.setAccelerometerInterval(100)
–Add menu screen objects
local menuScreeGroup
local mmScreen
local playButton
–Add in game screen objects
local background
local paddle
local brick
local ball
–Add HUD elects for the score and level
local scoreText
local scoreNum
local levelText
local levelNum
– Add alert display group
local alertDisplayGroup
local alertBox
local conditionDisplay
local messageText
–Add Values of the bricks display group
local _W = display.contentWidth/2
local _H = display.contentHeight/2
local bricks = display.newGroup()
local brickWidth = 35
local brickHeight = 35
local row
local column
local score = 0
local scoreIncrease = 100
local currentLevel
local vx = 3
local vy = -3
local gameEvent = “”
–Add touch event
local isSimulator = “simulator” == system.getInfo(“environment”)
function main1()
mainMenu()
end
–[[
function mainMenu()
menuScreenGroup = display.newGroup()
mmScreen = display.newImage(“mmScreen.png”, 0,0, true)
mmScreen.x = _W
mmScreen.y = _H
playButton = display.newImage(“playbtn.png”)
playButton:setReferencePoint(display.CenterReferencePoint)
playButton.x = _W; playButton.y = _H +50
playButton.name = “playbutton”
menuScreenGroup:insert(mmScreen)
menuScreenGroup:insert(playButton)
playButton:addEventListener(“tap”, loadGame)
end
function loadGame(event)
if event.target.name == “play button” then
transition.to(menuScreenGroup,{time = 0, alpha = 0, onComplete = addGameScreen})
playButton:removeEventListener(“tap”, loadGame)
end
end
]]–
main()
[import]uid: 14790 topic_id: 33794 reply_id: 333794[/import]