hello!
i have recently starten on a simple vertical stroller game, and im already experiencing my first error.
whenever I try to start the simulator. this error is shown:
Unexpected symbol near ‘.’
File: main.lua
Line: 5
I cannot spot the error and I can’t find any similar error here.
here is my code for main.lua:
– main.lua
–
local storyboard.goToScene “menu”
and here is the code for my menu.lua if connected to this error:
Local bgimage = display newImage (“Sprates/menu_bg.jpg”)
Group:insert( bgimage )
bgimage:addEventListener( “touch”, gotoGame )
Local gotoGamr = function( event )
If event.phase == “ended” then
Storyboard.gotoScene( “lvlmenu” )
end
end
widget = require “widget”
Local playButton = widget.newbutton (“Sprites/button1.jpg”) {
Id = “btnplay”,
left = 100,
top = 200,
width = 120,
height = 40’
cornerRadius = 10,
onEvent = gotoGame
}
group:insert( playButton )