Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

build.settings.mobile
Started by el_dani Aug 17 2019 12:58 PM

1 reply to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

el_dani

[GLOBAL: userInfoPane.html]
el_dani
  • Observer

  • 1 posts
  • Corona SDK

Hello!

I was looking through the same code for the Match-Three-Space-RPG and found multiple files having endings in mobile and desktop, once on the build.settings file having a copy 'build.settings.mobile' and '[...].desktop; As well as the game scene having 2 copies called 'gameDesktop' and 'gameMobile', while there is no code that would ever use the specific versions of the file. I was initially expecting something like a C/C++ compilernote changing the line that calls the file depending on the plattform for which it is built.

 

Links to GitHub:

https://github.com/coronalabs/Match-Three-Space-RPG

https://github.com/coronalabs/Match-Three-Space-RPG/tree/master/scene

 

 

So my question is, does Corona change those files automatically when building for mobile or desktop, or is the idea that we just change the files manually before building, as this code is just a tutorial?

 

I could not find any information so I hope you can assist me, and thank you in advance!

-Daniel



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,064 posts
  • Enterprise

No Corona doesn't manage different versions of build.settings. I believe the creator is copying either the .mobile or .desktop versions to build.settings depending on what they are building for. There are few reasons to do this in most cases, but in many cases it's just a convenience. 




[topic_controls]
[/topic_controls]