ok see the below code or download full folder of sample at
https://github.com/technowand/Ball-Game-Demo
This is just a sample and is done in less than an hours time. feel free to ask me if you have any doubt in the code.
oh…sorry…I forgot to say… Welcome to coding with Corona… 
[lua]-- setting the physical world
local physics = require(“physics”)
physics.start()
physics.setGravity(0,9.8)
–adding background
local background = display.newImage(“backdrop.png”)
–adding pipe
local pipe = display.newImage(“pipe.png”,50,0)
–adding block1 --newImageRect : adds image in the specified dimension
local block1 = display.newImageRect(“block.png”,120,20)
block1.x = 80 ; block1.y = 130
block1.rotation = 35
block1.alpha = .3
physics.addBody(block1,“static”,{isSensor =true})
–adding block2 --newImageRect : adds image in the specified dimension
local block2 = display.newImageRect(“block.png”,120,20)
block2.x = 200 ; block2.y = 240
block2.rotation = 25
block2.alpha = .3
–set isSensor = true - object won’t bounce on block
physics.addBody(block2,“static”,{isSensor =true})
–adding flag level complete when ball reach flag
local flag = display.newImage(“flag.png”,310,265)
physics.addBody(flag,“static”)
–adding the ball
local ball = display.newImage(“ball.png”,50,0)
ball:setReferencePoint(display.CenterReferencePoint)
ball.x = 77 ; ball.y = 0
–ball is dynamic- it will fall down
physics.addBody(ball,“dynamic”)
–function to call when the wooden block is touched
– we basically make the block full visible and set isSensot = false - object bounce on block
local function blockTouch(event)
if event.phase == “began” then
event.target.alpha = 1
event.target.isSensor = false
elseif event.phase == “ended” or event.phase == “cancelled” then
event.target.alpha = .3
event.target.isSensor = true
end
return true
end
block1:addEventListener(“touch”,blockTouch)
block2:addEventListener(“touch”,blockTouch)
local function touchedFlag(event)
local winTXT = display.newText(“WIN”,display.contentWidth/2,display.contentHeight/2,nil,50)
end
flag:addEventListener(“collision”,touchedFlag)[/lua] [import]uid: 71210 topic_id: 13449 reply_id: 49490[/import]