In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains "Introduction to the advantages and disadvantages of Lua language SDK library Corona". The explanation in this article is simple and clear, easy to learn and understand. Please follow the ideas of Xiaobian and go deep into it slowly to study and learn "Introduction to the advantages and disadvantages of Lua language SDK library Corona" together.
First, the advantages of the Corona SDK:
◆ Stability
◆ Support hardware acceleration, GPS, compass and camera, etc.
◆ Support integration with Map, Facebook, OpenFient, GameCenter
◆ Built-in physical integration
Lua language is easier to learn.
◆ There are already some very good applications, at least to prove that this SDK can make good applications
Good community support
And then there's the not-so-great thing about the Corona SDK:
◆ Support iOS and Android only
Lua is not object-oriented.
◆ Pay license fee every year
Android has too many bugs.
There are other additions, such as:
◆ Third-party SDKs not supported by Corona SDK cannot be integrated by themselves
◆ When compiling the project, you need to upload the code to the Corona server to compile, and you cannot compile it directly locally.
Unable to expand Corona features, and official updates are too slow. This is one of the most reflected problems
◆ There are still some defects in the physical module
In contrast, the new Monkey SDK has made great improvements on these defects, such as broader platform support, such as the convenience of Native Code integration, such as the need to purchase only one license, such as the fully object-oriented Bliz scripting language, and so on. Let's take a look at the Lua+Corcna SDK library for developing Android or iPhone client applications.
I. Choice of development language
iPhone has Objective-C
Android with Java
But if you look at the ranking of programming languages, Lua, a Brazilian language invented specifically for embedded development, is now popular. It is already ranked in the top 10, while Ruby is around 11.
II. Selection of SDK Library
In fact, the key to why Lua is so awesome is the emergence of an SDK library, just as the emergence of Rails enabled Ruby. The appearance of this SDK library activates Lua.
It is the same name as the beer we often order in the bar: Corcna.
Corcna also includes a mobile simulation environment for PC use.
All right, everyone download and install Lua's development environment and Corcna SDK library.
Once the Lua+Corcna environment is ready, you can write it all at once and put it on iPhone or Android.
Speed? It's said there's no problem.
3. Create *** hello programs
In fact, SDK is a library function that provides various environments.
Corcna is a library function based on mobile phones (I guess it includes Android and iPhone, after compilation, you can use the corresponding library function intelligently. )
Use any editor, notepad++ syntax with Lua, to recognize Lua code. Type the following code:
local textObject = display.newText( "Hello World! ", 50, 150, native.systemFont, 24 ) textObject:setTextColor( 255,255,255 )
Also save as: main.Lua, main is the entrance.
All right, let's run this code using the Corcna simulator, and we're done. open, main.Lua is OK. Hello world is already displayed on the simulated phone screen.
Thank you for reading, the above is "Lua language SDK library Corona advantages and disadvantages introduction" content, after learning this article, I believe you have a deeper understanding of the advantages and disadvantages of Lua language SDK library Corona introduction this problem, the specific use of the situation still needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.