Lua Quick Start Guide: The easiest way to learn Lua programming

Gabor Szauer

  • 出版商: Packt Publishing
  • 出版日期: 2018-07-27
  • 售價: $1,140
  • 貴賓價: 9.5$1,083
  • 語言: 英文
  • 頁數: 202
  • 裝訂: Paperback
  • ISBN: 1789343224
  • ISBN-13: 9781789343229
  • 相關分類: 程式語言
  • 立即出貨 (庫存=1)

買這商品的人也買了...

相關主題

商品描述

The easiest way to learn Lua programming

Key Features

  • The easiest way to learn Lua coding
  • Use the Lua standard libraries and debug Lua code
  • Embed Lua as a scripting language using the Lua C API

Book Description

Lua is a small, powerful and extendable scripting/programming language that can be used for learning to program, and writing games and applications, or as an embedded scripting language. There are many popular commercial projects that allow you to modify or extend them through Lua scripting, and this book will get you ready for that. This book is the easiest way to learn Lua. It introduces you to the basics of Lua and helps you to understand the problems it solves. You will work with the basic language features, the libraries Lua provides, and powerful topics such as object-oriented programming. Every aspect of programming in Lua, variables, data types, functions, tables, arrays and objects, is covered in sufficient detail for you to get started. You will also find out about Lua's module system and how to interface with the operating system.

After reading this book, you will be ready to use Lua as a programming language to write code that can interface with the operating system, automate tasks, make playable games, and much more. This book is a solid starting point for those who want to learn Lua in order to move onto other technologies such as Love2D or Roblox.

A quick start guide is a focused, shorter title that provides a faster paced introduction to a technology. It is designed for people who don't need all the details at this point in their learning curve. This presentation has been streamlined to concentrate on the things you really need to know.

What you will learn

  • Understand the basics of programming the Lua language
  • Understand how to use tables, the data structure that makes Lua so powerful
  • Understand object-oriented programming in Lua using metatables
  • Understand standard LUA libraries for math, file io, and more
  • Manipulate string data using Lua
  • Understand how to debug Lua applications quickly and effciently
  • Understand how to embed Lua into applications with the Lua C API

Who this book is for

This book is for developers who want to get up and running with Lua. This book is ideal for programmers who want to learn to embed Lua in their own applications, as well as for beginner programmers who have never coded before.

Table of Contents

  1. Introduction to LUA
  2. Working with LUA
  3. Tables and Objects
  4. LUA Libraries
  5. Debuging LUA
  6. Embedding LUA
  7. LUA Bridge
  8. Next Steps

商品描述(中文翻譯)

《最簡單的學習Lua程式設計方法》

主要特點


  • 最簡單的學習Lua編程的方法

  • 使用Lua標準庫和調試Lua代碼

  • 使用Lua C API將Lua嵌入作為腳本語言

書籍描述

Lua是一種小巧、強大且可擴展的腳本/編程語言,可用於學習編程、編寫遊戲和應用程序,或作為嵌入式腳本語言。許多流行的商業項目允許您通過Lua腳本進行修改或擴展,而本書將幫助您做好準備。本書是學習Lua最簡單的方法。它介紹了Lua的基礎知識,並幫助您理解它所解決的問題。您將使用基本的語言特性、Lua提供的庫以及面向對象編程等強大主題進行工作。本書詳細介紹了Lua編程的各個方面,包括變量、數據類型、函數、表、數組和對象。您還將了解Lua的模塊系統以及如何與操作系統進行接口交互。

閱讀本書後,您將能夠使用Lua作為編程語言,編寫可以與操作系統進行接口交互、自動化任務、可玩的遊戲等代碼。本書是那些想要學習Lua以便轉向其他技術(如Love2D或Roblox)的人的堅實起點。

快速入門指南是一本專注、篇幅較短的書籍,提供了對一項技術更快節奏的介紹。它專為那些在學習曲線上此時不需要所有細節的人設計。本書的內容經過精簡,專注於您真正需要了解的內容。

您將學到什麼


  • 了解Lua語言的基礎知識

  • 了解如何使用表,這是使Lua如此強大的數據結構

  • 使用元表在Lua中進行面向對象編程

  • 了解用於數學、文件IO等的標準Lua庫

  • 使用Lua操作字符串數據

  • 快速高效地調試Lua應用程序

  • 使用Lua C API將Lua嵌入到應用程序中

本書適合對象

本書適合希望快速上手Lua的開發人員。本書對於想要學習將Lua嵌入到自己應用程序中的程序員以及從未編寫過代碼的初學者程序員都非常適用。

目錄


  1. LUA簡介

  2. 使用LUA

  3. 表和對象

  4. LUA庫

  5. 調試LUA

  6. 嵌入LUA

  7. LUA橋接

  8. 下一步