code is running smoothly on the emulator. but it does not go to the start screen when the phone is running. What could be the reason?
-- game.lua local storyboard = require "storyboard" local scene = storyboard.newScene() local physics = require "physics" physics.start() local w,h = display.contentWidth,display.contentHeight physics.setDrawMode("hybrid") function send(e) if e.phase == "began" then end end local wall = display.newRect(0,h,w\*2,h) wall.name = "altDuvar" function scene:enterScene(e) local group = self.view physics.addBody(wall,"static") wall:addEventListener("collision",send) group:insert(wall) local aaaa = display.newCircle(w/2,h/2-200,w\*0.075) physics.addBody(aaaa,"dynamic",{ radius = w\*0.075 }) aaaa:addEventListener("preCollision",function(e) if e.other.name == "wall" then storyboard.purgeScene("start") storyboard.gotoScene("start",{ effect = "fade",time = 200 }) end end) group:insert(aaaa) end scene:addEventListener("enterScene",scene) return scene
-- start.lua local storyboard = require "storyboard" local scene = storyboard.newScene() local w,h = display.contentWidth,display.contentHeight function scene:createScene() storyboard.removeScene("game") local group = self.view local startButton = display.newRoundedRect(w/2,h/2,150,150,25) group:insert(startButton) startButton:addEventListener("touch",function(e) storyboard.gotoScene("game",{ effect = "fade" , time = 250 }) end) end scene:addEventListener("createScene",scene) return scene

