Programming in Lua

博客提供了Lua编程指南的内容链接,可通过该链接http://www.lua.org/pil/contents.html查看相关内容。

http://www.lua.org/pil/contents.html


《LÖVE for Lua Game Programming》 开源游戏引擎love2d综合教程。 love2d 是一款备受欢迎的开源2D视频游戏引擎框架,其可以让你借助简便的 Lua 脚本语言在游戏原型开发中变得又快又简单。Love2d 拥有强大和活跃的社区来使其成为一个有效的游戏开发框架。Love2d 成就了世界上许多不同年龄段的独立游戏开发者,让他们有机会接触到商业视频游戏的机会。 Love2d的简单和“write less build more”的特点使得它在经验丰富的老人和刚入行的新人都很容易上手。 本书是一本展示 Love2D 大部分综合功能的教程。它将带领你通过创建一个原型来快速用Love2d快速打包。 本书所涵盖的内容 第一章:开始Love2d。下载,安装,Lua框架,运行 Love2d 游戏 第二章:Love2d 走起!带领你学会绘制2D对象,移动游戏对象,并赋予一个游戏角色生命。 第三章:创建游戏之前。带你了解开发一个游戏所必备的游戏知识。 第四章:创建你的第一个游戏。这章带领你设计和加载游戏关卡,并设置管理你的游戏角色和资源。 第五章:更多游戏制作。介绍你一些游戏物理如碰撞,重力对游戏对象的影响,来帮助你更好的创建角色动画。 第六章:遇见坏蛋。描述怎么创建敌人角色。 第七章:存档,UI和声音。 第八章:打包和部署你的游戏,描述怎么打包和部署你的游戏到各个平台上,现在你的游戏已经面世了。
When Waldemar, Luiz, and I started the development of Lua, back in 1993, we could hardly imagine that it would spread as it did. Started as an in-house language for two specific projects, currently Lua is widely used in all areas that can benefit from a simple, extensible, portable, and efficient scripting language, such as embedded systems, mobile devices, the Internet of Things, and, of course, games. We designed Lua, from the beginning, to be integrated with software written in C/C++ and other conventional languages. This integration brings many benefits. Lua is a small and simple language, partly because it does not try to do what C is already good for, such as sheer performance and interface with third-party software. Lua relies on C for these tasks. What Lua does offer is what C is not good for: a good distance from the hardware, dynamic structures, no redundancies, and ease of testing and debugging. For these goals, Lua has a safe environment, automatic memory management, and good facilities for handling strings and other kinds of data with dynamic size. Part of the power of Lua comes from its libraries. This is not by chance. After all, one of the main strengths of Lua is its extensibility. Many features contribute to this strength. Dynamic typing allows a great degree of polymorphism. Automatic memory management simplifies interfaces, because there is no need to decide who is responsible for allocating and deallocating memory or how to handle overflows. First-class functions allow a high degree of parameterization, making functions more versatile. More than an extensible language, Lua is also a glue language. Lua supports a component-based approach to software development, where we create an application by gluing together existing high-level components. These components are written in a compiled, statically-typed language, such as C or C++; Lua is the glue that we use to compose and connect these components. Usually, the components (or objects) represent mo
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值