{"id":1461,"date":"2011-12-21T19:24:26","date_gmt":"2011-12-21T19:24:26","guid":{"rendered":"http:\/\/www.mobisoftinfotech.com\/blog\/?p=1461"},"modified":"2024-11-27T11:49:28","modified_gmt":"2024-11-27T06:19:28","slug":"lua-programming-tutorial","status":"publish","type":"post","link":"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial","title":{"rendered":"Lua Programming Tutorial"},"content":{"rendered":"<p>I have written a <a href=\"https:\/\/www.mobisoftinfotech.com\/lua-tutorial\/lua-scripting-tutorial.html\">tutorial<\/a> about <a title=\"Lua\" href=\"https:\/\/www.lua.org\/\" rel=\"nofollow noopener\">Lua Programming Language<\/a>. This tutorial is written for programmers who have prior experience with &#8216;C Like&#8217; programming languages such as C, C++, Java or Objective-C.<\/p>\n<p>I have tried to keep the description as minimal as possible and strived to make the sample code simple and self explanatory. This should get you up and running with Lua in record time. So you can learn to program mobile games for iPhone and Android with SDK&#8217;s like Corona and Moai.<\/p>\n<p>You can find the tutorial here: <a title=\"Lua Scripting Tutorial\" href=\"https:\/\/www.mobisoftinfotech.com\/lua-tutorial\/lua-scripting-tutorial.html\">Lua Programming Tutorial<\/a><\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>I have written a tutorial about Lua Programming Language. This tutorial is written for programmers who have prior experience with &#8216;C Like&#8217; programming languages such as C, C++, Java or Objective-C. I have tried to keep the description as minimal as possible and strived to make the sample code simple and self explanatory. This should [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":7459,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_s2mail":"","footnotes":""},"categories":[170],"tags":[465,171],"class_list":["post-1461","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-lua","tag-lua","tag-programming-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Lua Programming Tutorial - Mobisoft Infotech<\/title>\n<meta name=\"description\" content=\"This tutorial is written for programmers who have prior experience with \u2018C Like\u2019 programming languages such as C, C++, Java or Objective-C.Learn more.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Lua Programming Tutorial - Mobisoft Infotech\" \/>\n<meta property=\"og:description\" content=\"This tutorial is written for programmers who have prior experience with \u2018C Like\u2019 programming languages such as C, C++, Java or Objective-C.Learn more.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial\" \/>\n<meta property=\"og:site_name\" content=\"Mobisoft Infotech\" \/>\n<meta property=\"article:published_time\" content=\"2011-12-21T19:24:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-27T06:19:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2015\/01\/Lua-Programming-Tutorial_l-min.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"550\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Pritam Barhate\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pritam Barhate\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial#article\",\"isPartOf\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial\"},\"author\":{\"name\":\"Pritam Barhate\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/fa762036b3364f26abeea146c01487ee\"},\"headline\":\"Lua Programming Tutorial\",\"datePublished\":\"2011-12-21T19:24:26+00:00\",\"dateModified\":\"2024-11-27T06:19:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial\"},\"wordCount\":96,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial#primaryimage\"},\"thumbnailUrl\":\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2015\/01\/Lua-Programming-Tutorial_l-min.jpg\",\"keywords\":[\"Lua\",\"Programming Tutorial\"],\"articleSection\":[\"Lua\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial\",\"url\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial\",\"name\":\"Lua Programming Tutorial - Mobisoft Infotech\",\"isPartOf\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial#primaryimage\"},\"image\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial#primaryimage\"},\"thumbnailUrl\":\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2015\/01\/Lua-Programming-Tutorial_l-min.jpg\",\"datePublished\":\"2011-12-21T19:24:26+00:00\",\"dateModified\":\"2024-11-27T06:19:28+00:00\",\"author\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/fa762036b3364f26abeea146c01487ee\"},\"description\":\"This tutorial is written for programmers who have prior experience with \u2018C Like\u2019 programming languages such as C, C++, Java or Objective-C.Learn more.\",\"breadcrumb\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial#primaryimage\",\"url\":\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2015\/01\/Lua-Programming-Tutorial_l-min.jpg\",\"contentUrl\":\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2015\/01\/Lua-Programming-Tutorial_l-min.jpg\",\"width\":1920,\"height\":550,\"caption\":\"Lua Programming Tutorial_l-min\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/mobisoftinfotech.com\/resources\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lua Programming Tutorial\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/#website\",\"url\":\"https:\/\/mobisoftinfotech.com\/resources\/\",\"name\":\"Mobisoft Infotech\",\"description\":\"Discover Mobility\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/mobisoftinfotech.com\/resources\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/fa762036b3364f26abeea146c01487ee\",\"name\":\"Pritam Barhate\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/0e481c7ce54b3567ac70ddfc493523eefce0bdc3ee69fd2654f8f60a79e2f178?s=96&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0e481c7ce54b3567ac70ddfc493523eefce0bdc3ee69fd2654f8f60a79e2f178?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0e481c7ce54b3567ac70ddfc493523eefce0bdc3ee69fd2654f8f60a79e2f178?s=96&r=g\",\"caption\":\"Pritam Barhate\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Lua Programming Tutorial - Mobisoft Infotech","description":"This tutorial is written for programmers who have prior experience with \u2018C Like\u2019 programming languages such as C, C++, Java or Objective-C.Learn more.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial","og_locale":"en_US","og_type":"article","og_title":"Lua Programming Tutorial - Mobisoft Infotech","og_description":"This tutorial is written for programmers who have prior experience with \u2018C Like\u2019 programming languages such as C, C++, Java or Objective-C.Learn more.","og_url":"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial","og_site_name":"Mobisoft Infotech","article_published_time":"2011-12-21T19:24:26+00:00","article_modified_time":"2024-11-27T06:19:28+00:00","og_image":[{"width":1920,"height":550,"url":"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2015\/01\/Lua-Programming-Tutorial_l-min.jpg","type":"image\/jpeg"}],"author":"Pritam Barhate","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Pritam Barhate","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial#article","isPartOf":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial"},"author":{"name":"Pritam Barhate","@id":"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/fa762036b3364f26abeea146c01487ee"},"headline":"Lua Programming Tutorial","datePublished":"2011-12-21T19:24:26+00:00","dateModified":"2024-11-27T06:19:28+00:00","mainEntityOfPage":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial"},"wordCount":96,"commentCount":0,"image":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial#primaryimage"},"thumbnailUrl":"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2015\/01\/Lua-Programming-Tutorial_l-min.jpg","keywords":["Lua","Programming Tutorial"],"articleSection":["Lua"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial#respond"]}]},{"@type":"WebPage","@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial","url":"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial","name":"Lua Programming Tutorial - Mobisoft Infotech","isPartOf":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/#website"},"primaryImageOfPage":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial#primaryimage"},"image":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial#primaryimage"},"thumbnailUrl":"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2015\/01\/Lua-Programming-Tutorial_l-min.jpg","datePublished":"2011-12-21T19:24:26+00:00","dateModified":"2024-11-27T06:19:28+00:00","author":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/fa762036b3364f26abeea146c01487ee"},"description":"This tutorial is written for programmers who have prior experience with \u2018C Like\u2019 programming languages such as C, C++, Java or Objective-C.Learn more.","breadcrumb":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial#primaryimage","url":"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2015\/01\/Lua-Programming-Tutorial_l-min.jpg","contentUrl":"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2015\/01\/Lua-Programming-Tutorial_l-min.jpg","width":1920,"height":550,"caption":"Lua Programming Tutorial_l-min"},{"@type":"BreadcrumbList","@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mobisoftinfotech.com\/resources\/"},{"@type":"ListItem","position":2,"name":"Lua Programming Tutorial"}]},{"@type":"WebSite","@id":"https:\/\/mobisoftinfotech.com\/resources\/#website","url":"https:\/\/mobisoftinfotech.com\/resources\/","name":"Mobisoft Infotech","description":"Discover Mobility","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mobisoftinfotech.com\/resources\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/fa762036b3364f26abeea146c01487ee","name":"Pritam Barhate","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0e481c7ce54b3567ac70ddfc493523eefce0bdc3ee69fd2654f8f60a79e2f178?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0e481c7ce54b3567ac70ddfc493523eefce0bdc3ee69fd2654f8f60a79e2f178?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0e481c7ce54b3567ac70ddfc493523eefce0bdc3ee69fd2654f8f60a79e2f178?s=96&r=g","caption":"Pritam Barhate"}}]}},"_links":{"self":[{"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/posts\/1461","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/comments?post=1461"}],"version-history":[{"count":17,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/posts\/1461\/revisions"}],"predecessor-version":[{"id":32597,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/posts\/1461\/revisions\/32597"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/media\/7459"}],"wp:attachment":[{"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/media?parent=1461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/categories?post=1461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/tags?post=1461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}