05532nam 2200625Ia 450 991043809550332120200520144314.01-4302-4663-410.1007/978-1-4302-4663-3(CKB)3460000000120998(EBL)1204517(SSID)ssj0000880317(PQKBManifestationID)11455044(PQKBTitleCode)TC0000880317(PQKBWorkID)10895112(PQKB)10054314(DE-He213)978-1-4302-4663-3(MiAaPQ)EBC1204517(CaSebORM)9781430246626(PPN)169134776(OCoLC)848884031(OCoLC)ocn848884031(EXLCZ)99346000000012099820130422d2012 uy 0engur|n|---|||||txtccrLearn Lua for iOS game development /Jayant Varma1st ed. 2013.New York Apress20121 online resource (416 p.)Includes index.1-4302-4662-6 Title Page; Copyright Page; Dedication Page; Contents at a Glance; Table of Contents; About the Author; About the Technical Reviewers; Acknowledgments; Chapter 1 Introduction to Lua; What Is Lua?; The History of Lua; Lua Timeline; Starting with Lua; Setting Up Lua; Online Lua Shell; Windows, Mac OS X, and *nix; iOS; Features of Lua; Variables; Hello World, the Variable Way; Hello World, the Variable Way; Strings; Strings; Numerals; Values and Types; nil; boolean; number; string; function; userdata; thread; table; Code Blocks and Scopes; Lua Operators; Arithmetic OperatorsRelational OperatorsLogical Operators; Other Operators; Summary; Chapter 2 Lua Libraries; Basic Functions; assert (V [, message] ); collectgarbage ( [Opt [,arg]] ); dofile ( [filename] ); error ( message [,level] ); _G; getfenv ( [f] ); getmetatable ( object); ipairs (t); load ( func [,chunkname] ); loadstring ( string [,chunkname] ); next ( table [,index] ); pairs (t); pcall ( f, arg1, ... ); print( ... ); rawequal ( v1, v2 ); rawget ( table, index ); rawest ( table, index, value ); select ( index, ... ); setfenv (f, table); setmetatable ( table, metatable ); tonumber( e [,base] )tostring ( e )type (V); unpack ( list [, i [, j] ] ); _VERSION; xpcall ( f, err); System Libraries; Table Functions; table.concat ( aTable [,sep [,i [,j] ] ] ); table.insert ( aTable, [pos,] value); table.maxn ( aTable ); table.remove ( aTable [, pos] ); table.sort ( aTable [, comp] ); OS Functions; os.clock ( ); os.date ( [format [,time] ] ); os.difftime ( t2, t1 ); os.execute ( [command] ); os.exit ( ); os.getenv ( varname ); os.remove ( filename); os.rename ( oldname, newname ); os.setlocale ( locale [,category] ); os.time ( [table] ); os.tmpname ( ); Tables: A Quick OverviewTables As ArraysTables As Associative Arrays; Functions: An Advanced Look; Tables As Objects; The Difference Between . and :; Summary; Chapter 3 File Operations; Implicit Functions; io.close ( [file] ); io.flush ( ); io.input ( [file] ); io.lines ( [filename] ); io.open ( filename [,mode] ); io.output ( [file] ); io.read ( ... ); io.tmpfile ( ); io.type ( obj ); io.write ( ... ); Explicit Functions; file:close ( ); file:flush ( ); file:lines ( ); file:read ( [format] ); file:seek ( [whence] [, offset] ); file:setvbuf (mode [, size] ); file:write( ... }; Uses of File I/O in GamingSaving a VariableGrabbing the Data; How the Code Works; Potential Issues; Saving Data to a Variable; How the Code Works; Potential Issues; Writing Data to the File; Saving a Table; Dynamic Variables; Summary; Chapter 4 Math with Lua; Introduction to Math in Lua; math.abs (X); math.acos (X); math.asin (X); math.atan (X); math.atan2 (Y,X); math.ceil (X); math.cos (X); math.cosh (X); math.deg (X); math.exp (X); math.floor (x); math.fmod (X); math.frexp (X); math.huge; math.ldexp (m, e); math.log (X); math.log10 (X); math.max (X, ...); math.min (X, ...); math.modf (X); math.pi; math.pow (x,y)math.rad (X)So you have a great game idea for iPhone or iPad, but Objective-C just seems a bit daunting. What are your alternatives? The App Store is very picky about languages, but there is hope: Lua is a versatile, lightweight, fast, and easy to learn language that you can use to build your iOS games and get them accepted into the App Store. Learn Lua for iOS Game Development walks you through the Lua basics, then shows you how to create games using the top Lua frameworks like Corona SDK, Gideros, Moai, and even how to create games on the iPad (not just for the iPad) with Codea. You aren't tied to Xcode and Objective-C -- you can create all sorts of amazing games with Lua. But if you already have an existing iOS game, you'll also learn how to integrate Lua to extend the game. If you're an aspiring or current iOS developer, you need to know Lua, and Learn Lua for iOS Game Development will give you just what you need to do that.Operating systems (Computers)Application softwareDevelopmentOperating systems (Computers)Application softwareDevelopment.005.1071Varma Jayant905560MiAaPQMiAaPQMiAaPQBOOK9910438095503321Learn Lua for iOS Game Development2025677UNINA