# Getting Started

**URL:** <https://forums.solar2d.com/t/getting-started/149603>\
**Category:** Newbie Questions\
**Created:** [December 5, 2017, 4:32pm UTC](https://forums.solar2d.com/t/getting-started/149603 "2017-12-05T16:32:08Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [December 5, 2017, 4:32pm UTC](https://forums.solar2d.com/t/getting-started/149603/1 "2017-12-05T16:32:08Z")

</div>

New here? Where should you start?

Check out our getting started guide:

[https://docs.coronalabs.com/guide/programming/index.html](https://docs.coronalabs.com/guide/programming/index.html)

This set of tutorials will&nbsp;guide you through getting Corona installed and making two games. It will help you learn Lua and the Corona API system.

Rob

---

<div class="post-metadata">

**Author:** ![Rou.shaheen](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/r/87869e/32.png) [@Rou.shaheen](https://forums.solar2d.com/u/Rou.shaheen)\
**Post date:** [December 15, 2017, 12:18am UTC](https://forums.solar2d.com/t/getting-started/149603/2 "2017-12-15T00:18:57Z")

</div>

Hello

I am new to all of this and apprecaite any help that I can get. (I am no developer, i just deal with one so bear with me for not understanding the technical terms)

I am having a third party developer make me a simple app for iOS and Android and we are in different countries

The developer is saying that it is a Corona based iTunes app.

In order for me to test this app he is saying that I need to purchase an Enterprise Developer Account and to send him the account details so he can deploy it and I can play on my devices.

He says to make sure to create a CORONA based iTunes and gives me the following steps :

login  
then click on developer account  
then packages  
then cocoa  
select  
corona  
and then click on platform  
select iphone and android  
then select languages  
lua  
objective C  
android SDK  
java platform  
then click on soft  
in that select supported files  
then click on yes buttion  
then click on packages  
select packages

The problem the link he gave me to follow these steps is apple developer and those steps are not there at all

Does any of this make sense to anyone?

I have tried to enroll in an Enterprise Developer Account but it only allows me to sign up for the Individual Developer account.

The developer is saying that I cannot use an Individual Developer Account.

Thanks!

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [December 15, 2017, 3:40pm UTC](https://forums.solar2d.com/t/getting-started/149603/3 "2017-12-15T15:40:55Z")

</div>

To develop for iOS, you do have to have an Apple developer account which gives you access to iTunes Connect, the web-based interface that lets you upload your app to Apple to get approved and deployed.&nbsp; There aren’t any “Corona” specific settings in your Apple setup and there isn’t any Android setup there as well.&nbsp; I suspect the requirement for an Enterprise developer vs. An individual developer is so that you can add his developer account to your Enterprise account so he can manage it.

The steps above don’t make a lot of sense to me. Some of it looks like you’re setting up a Xcode project.&nbsp; The steps Android steps also don’t make a lot of sense in any Google-based&nbsp;setup.

Rob

---

<div class="post-metadata">

**Author:** ![sadeshjo123](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/s/dc4da7/32.png) [@sadeshjo123](https://forums.solar2d.com/u/sadeshjo123)\
**Post date:** [November 22, 2018, 4:26am UTC](https://forums.solar2d.com/t/getting-started/149603/4 "2018-11-22T04:26:24Z")

</div>

thanks for this

---

<div class="post-metadata">

**Author:** ![aliaymaneltantawy](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/a/aca169/32.png) [@aliaymaneltantawy](https://forums.solar2d.com/u/aliaymaneltantawy)\
**Post date:** [December 16, 2018, 12:30pm UTC](https://forums.solar2d.com/t/getting-started/149603/5 "2018-12-16T12:30:36Z")

</div>

Hi ,

I have a problem. Now I’m in the “Upward & Inward” tutorial and I have downloaded its source. When I open the Build dot Settings file visual studio sends me an error&nbsp;message which is “Data at the root level is invalid. Line 1, position 1.”, how to solve&nbsp;this problem?

Thanks.

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [December 16, 2018, 8:39pm UTC](https://forums.solar2d.com/t/getting-started/149603/6 "2018-12-16T20:39:09Z")

</div>

How did you get the files for the project? Did you create a build.settings file and hand type in the contents? Did you do a New Project from the menu or welcome Window? Did you download the source from GitHub?

Can you open it in another editor like Notepad?

Thanks

Rob

---

<div class="post-metadata">

**Author:** ![aljaafrehjamal](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/a/ac8455/32.png) [@aljaafrehjamal](https://forums.solar2d.com/u/aljaafrehjamal)\
**Post date:** [February 2, 2019, 3:54pm UTC](https://forums.solar2d.com/t/getting-started/149603/7 "2019-02-02T15:54:20Z")

</div>

Hi, I’m very new to everything, but I’ve mainly been having a ton of trouble with tables and having enemies (in my case, fighter jets) appear on screen. I’m not exactly sure what I’ve done wrong, but I’m sure my code is a mess because I’ve been trying many different things to make it work. I really need help to understand what it is I’m doing wrong, and what method should I be using. Thank you for any help!

Edit: I’m creating a physics game very similar to flappy bird where I have a UFO moving along a Parallax background and dodging incoming fighter jets from the right side of the screen. I initially had everything operating correctly except for collision (I can’t seem to make the collision function take the player to the “menu” screen). But I realized I should be utilizing tables to create the fighter jet enemies instead of creating each individual jet since they are all the same png file. I tried to do this, but I can’t seem to figure out how to implement tables for my fighter jet enemies. They just don’t appear at all when I try this method.

```
local composer = require( "composer" ) local scene = composer.newScene() local physics = require "physics" physics.start() -- ----------------------------------------------------------------------------------- -- Code outside of the scene event functions below will only be executed ONCE unless -- the scene is removed entirely (not recycled) via "composer.removeScene()" -- ----------------------------------------------------------------------------------- &nbsp;local background &nbsp;local city1 &nbsp;local city2 &nbsp;local city3 &nbsp;local city4 &nbsp;local ufo = display.newImage("ufo.png") ufo.x = 100 ufo.y = 100 ufo:scale( .1, .1 ) physics.addBody(ufo, "dynamic", {density=1, bounce=0.1, friction=2, radius=12} ) local fighter = display.newImage("fighter.png") local fightersTable = {} local score = 0 -- ----------------------------------------------------------------------------------- -- Scene event functions -- ----------------------------------------------------------------------------------- &nbsp; function activateUfo(self,event) self:applyForce(0, -10, self.x, self.y) end function touchScreen(event) if event.phase == "began" then &nbsp; ufo.enterFrame = activateUfo &nbsp; Runtime:addEventListener("enterFrame", ufo) end if event.phase == "ended" then Runtime:removeEventListener("enterFrame", ufo) end end Runtime:addEventListener("touch", touchScreen) &nbsp;function activateUfo(self,event) self:applyForce(0, -10, self.x, self.y) end function scrollCity(self,event) if self.x \< -800 then self.x = 900 else self.x = self.x - self.speed end end local function createFighters() local newFighter = display.newImage("fighter.png") table.insert( fightersTable, newFighter) physics.addBody(fighter, "static", {density=1, bounce=0.1, friction=2, radius=12} ) newFighter.myName = "fighter" local whereFrom = math.random(3) if ( whereFrom == 1 ) then fighter.x = 500 newFighter.y = math.random(50, 300) newFighter:scale( .08, .08 ) newFighter.speed = math.random(2,6) newFighter.initY = fighter.y newFighter.amp = math.random(20,100) newFighter.angle = math.random(1,360) newFighter:setLinearVelocity( math.random(500, 300)) elseif ( whereFrom == 2 ) then fighter1.x = 500 newFighter.y = math.random(200, 300) newFighter:scale( .08, .08 ) newFighter.speed = math.random(6,9) newFighter.initY = fighter1.y newFighter.amp = math.random(20,100) newFighter.angle = math.random(1,360) newFighter:setLinearVelocity( math.random(500, 100)) elseif ( whereFrom == 3 ) then newFighter.x = 500 newFighter.y = math.random(100, 200) newFighter:scale( .08, .08 ) newFighter.speed = math.random(3,7) newFighter.initY = fighter.y newFighter.amp = math.random(20,100) newFighter.angle = math.random(1,360) newFighter:setLinearVelocity( math.random(500, 200)) end end function onCollision(event) if event.phase == "began" then end end local function updateText() scoreText.text = "Score: " .. score &nbsp;end -- create() function scene:create( event ) &nbsp; &nbsp; local sceneGroup = self.view scoreText = display.newText( "Score: " .. score, 200, 80, native.systemFont, 36 ) local background = display.newImageRect( "BG.png", 900, 480 ) background.x = display.contentCenterX background.y = display.contentCenterY local city1 = display.newImageRect( "city1.png", 900, 480 ) city1.x = display.contentCenterX city1.y = display.contentCenterY + 110 city1.speed = 1 local city2 = display.newImageRect( "city1.png", 900, 480 ) city2.x = display.contentCenterX + 900 city2.y = display.contentCenterY + 110 city2.speed = 1 local city3 = display.newImageRect( "city2.png", 900, 480 ) city3.x = display.contentCenterX city3.y = display.contentCenterY + 5 city3.speed = 2 local city4 = display.newImageRect( "city2.png", 900, 480 ) city4.x = display.contentCenterX + 900 city4.y = display.contentCenterY + 5 city4.speed = 2 ufo = display.newImage("ufo.png") ufo.x = 50 ufo.y = 50 ufo:scale( .1, .1 ) physics.addBody(ufo, "dynamic", {density=1, bounce=0.1, friction=2, radius=12} ) ufo.collision = onCollision city1.enterFrame = scrollCity Runtime:addEventListener("enterFrame", city1) city2.enterFrame = scrollCity Runtime:addEventListener("enterFrame", city2) city3.enterFrame = scrollCity Runtime:addEventListener("enterFrame", city3) city4.enterFrame = scrollCity Runtime:addEventListener("enterFrame", city4) fighter.enterFrame = moveFighters Runtime:addEventListener("enterFrame", fighter) Runtime:addEventListener("collision", onCollision) &nbsp; &nbsp; -- Code here runs when the scene is first created but has not yet appeared on screen local function gameLoop() createFighters() end end -- show() function scene:show( event ) &nbsp; &nbsp; local sceneGroup = self.view &nbsp; &nbsp; local phase = event.phase &nbsp; &nbsp; if ( phase == "will" ) then &nbsp; &nbsp; &nbsp; &nbsp; -- Code here runs when the scene is still off screen (but is about to come on screen) &nbsp; &nbsp; elseif ( phase == "did" ) then &nbsp; &nbsp; &nbsp; &nbsp; -- Code here runs when the scene is entirely on screen &nbsp; &nbsp; end -- hide() function scene:hide( event ) &nbsp; &nbsp; local sceneGroup = self.view &nbsp; &nbsp; local phase = event.phase &nbsp; &nbsp; if ( phase == "will" ) then &nbsp; &nbsp; &nbsp; &nbsp; -- Code here runs when the scene is on screen (but is about to go off screen) &nbsp; &nbsp; elseif ( phase == "did" ) then &nbsp; &nbsp; &nbsp; &nbsp; -- Code here runs immediately after the scene goes entirely off screen &nbsp; &nbsp; end end end -- destroy() function scene:destroy( event ) &nbsp; &nbsp; local sceneGroup = self.view &nbsp; &nbsp; -- Code here runs prior to the removal of scene's view end -- ----------------------------------------------------------------------------------- -- Scene event function listeners -- ----------------------------------------------------------------------------------- scene:addEventListener( "create", scene ) scene:addEventListener( "show", scene ) scene:addEventListener( "hide", scene ) scene:addEventListener( "destroy", scene ) -- ----------------------------------------------------------------------------------- return scene

```

[lua]

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [February 4, 2019, 5:13pm UTC](https://forums.solar2d.com/t/getting-started/149603/8 "2019-02-04T17:13:29Z")

</div>

It looks like your code did not format properly, making it hard to read and understand what’s going on.

Can you edit it, and copy/paste your text into the popup window when you click the blue **\<\>** button in the edit bar along with Bold, Italics, etc.

You should also post a better description of what you’re trying to accomplish, what you’re seeing and what your expectations are. Screenshots or video captures of the what you’re seeing are also helpful.

Rob

---

<div class="post-metadata">

**Author:** ![jason.etim.bassey](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/j/e9c0ed/32.png) [@jason.etim.bassey](https://forums.solar2d.com/u/jason.etim.bassey)\
**Post date:** [February 20, 2019, 11:42pm UTC](https://forums.solar2d.com/t/getting-started/149603/9 "2019-02-20T23:42:28Z")

</div>

Hello,

I’m following the tutorial but I can’t seem to get past the background step without getting an error. I’ve tried copying the code for word but the following error pops up:&nbsp;[https://imgur.com/a/vUFDMzR](https://imgur.com/a/vUFDMzR)

I’m new to coding in general and would appreciate any help I could get.

---

<div class="post-metadata">

**Author:** ![sheikhameen123](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/s/77aa72/32.png) [@sheikhameen123](https://forums.solar2d.com/u/sheikhameen123)\
**Post date:** [March 12, 2019, 12:18am UTC](https://forums.solar2d.com/t/getting-started/149603/10 "2019-03-12T00:18:32Z")

</div>

I have just completed the Corona Getting Started Guides, and I realized I only used one asteroid from the sprite sheet. Did I miss out anywhere or the lesson was built that way?

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [March 12, 2019, 7:00pm UTC](https://forums.solar2d.com/t/getting-started/149603/11 "2019-03-12T19:00:19Z")

</div>

Welcome to the Corona community…

The tutorial only uses one of the two asteroids. We left it as a way for you to improve upon the game by adding in multiple asteroids.

Rob

---

<div class="post-metadata">

**Author:** ![boombox.extra](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/b/a87d85/32.png) [@boombox.extra](https://forums.solar2d.com/u/boombox.extra)\
**Post date:** [June 30, 2019, 11:50am UTC](https://forums.solar2d.com/t/getting-started/149603/12 "2019-06-30T11:50:13Z")

</div>

Hi!&nbsp;

settings =

{

&nbsp;&nbsp;orientation =

&nbsp;&nbsp;{

&nbsp;&nbsp;&nbsp;&nbsp;default = “landscapeLeft”,

&nbsp;&nbsp;&nbsp;&nbsp;supported = { “landscapeLeft”, },

},

&nbsp;unexpected symbol near ‘\<eof\>’

WTF? Help please

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [July 1, 2019, 2:33pm UTC](https://forums.solar2d.com/t/getting-started/149603/13 "2019-07-01T14:33:15Z")

</div>

You already have a thread asking this question and getting help on:

[https://forums.coronalabs.com/topic/75788-unexpected-symbol-near-eof/](https://forums.coronalabs.com/topic/75788-unexpected-symbol-near-eof/?hl=%2Bunexpected+%2Bsymbol)

Please only use one thread for your question.

Rob
