没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
v
Contents at a Glance
About the Author .............................................................................................................. xxv
About the Technical Reviewers ...................................................................................... xxvii
Acknowledgments ........................................................................................................... xxix
Chapter 1: Introduction to Lua ■ ...........................................................................................1
Chapter 2: Lua Libraries ■ ..................................................................................................13
Chapter 3: File Operations ■ ...............................................................................................29
Chapter 4: Math with Lua ■ ................................................................................................41
Chapter 5: Strings ■............................................................................................................65
Chapter 6: Threading ■ .......................................................................................................77
Chapter 7: Tips and Tricks ■ ...............................................................................................97
Chapter 8: Corona SDK ■ ..................................................................................................127
Chapter 9: Gideros Studio ■ ..............................................................................................167
Chapter 10: Moai ■ ...........................................................................................................203
Chapter 11: LÖVE ■ ...........................................................................................................245
Chapter 12: Codea ■ .........................................................................................................279
vi Contents at a Glance
Chapter 13: Libraries
■ .....................................................................................................303
Chapter 14: Third-Party Applications ■ ............................................................................317
Chapter 15: Sample Source Code ■ ..................................................................................349
Index .................................................................................................................................377
1
Chapter 1
Introduction to Lua
Apple has been issuing checks to developers, and the 2012 figures indicate that it has so far been
to the tune of $5 billion. In the past, it used to be desktops with Microsoft-based products that were
raking in money for developers, with Visual Basic, or earlier with database products such as dBase
and FoxPro. While the major share of this revenue goes to larger companies such as EA, Chillingo,
Gameloft, Rovio and even Disney, a lot of indie developers and smaller companies vie for a share of
that big pie. Who knows what idea might just become the money-spinner for a developer. Robert Nay,
a 14-year-old, made the game Bubble Ball while he was learning to code, and it went viral, with over
8 million downloads. And no one knows what the next top game will be.
As a person that has an interest in development, you have made the first step in this journey. You
could be a student that has never developed before, or you could be a guru developer who can
whip up an enterprise app in minutes. The point is that whatever your background, you are for some
reason drawn to this strange-sounding language, Lua (pronounced LOO-ah.).
What Is Lua?
Lua is a programming language that has a small footprint, works across several platforms, and is
quite flexible and extensible. Further, Lua is a game changer for developers that want to write apps
for the mobile devices. It has powered a lot of apps and games in the Apple App Store, and it has
been spoken about by the late Steve Jobs. It has even been linked with one of the most advanced
self-replicating and mutating viruses, the Flame. Despite all of that, Lua remains to be a language
that seems more like plain English than a cryptic programmer’s language, making it a language with
a smaller learning curve.
The History of Lua
While knowing the history of Lua will not change anything in terms of making anyone a better
programmer, it important to get an idea of why you’d want to use Lua.
Lua was created at the Pontifical Catholic University of Rio de Janeiro, Brazil, by Roberto
Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, who were members of the
剩余409页未读,继续阅读
资源评论
yinkaisheng-nj
- 粉丝: 763
- 资源: 6953
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功