So I’m pretty new to programming and Lua in general and decided to try out the tutorial on making your first game on Corona, the ‘BalloonTap’ game. I got the source files and put the png’s into the BalloonTap folder which show up as they should do. I can’t even complete the first part of the tutorial though as I can’t add the background. I get the error “unexpected symbol near ‘,’” whenever I input the code it tells me to input. My current code:
local background = display.newImageRect( “background.png”, 360, 570 )
background.x = display.contentCenterX
background.y = display.contentCenterY
This is exactly as it’s written on the tutorial and I can’t see why I’m getting this error. I downloaded SublimeText and am now using that instead of plain TextEdit but it still throws the error.
I then deleted everything from main.lua and closed and refreshed it, re-entered the code and relaunched the game and it comes up with no error, but a completely black screen. Nothing happens. I can’t see any errors appearing on console.
What have I done wrong? Thank you!