{"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":"2026-11-04T18:57:31","modified_gmt":"2026-11-04T13:27:31","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\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/mobisoftinfotech.com\/services\/ai-agent-development-company\"><noscript><img decoding=\"async\" src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2026\/11\/lua-object-oriented-programming-example.png\" alt=\"Lua code example showing Object, Animal, and Cat classes with inheritance relationships and methods.\" class=\"wp-image-57850\" title=\"Lua Object-Oriented Programming Example\"><\/noscript><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" alt=\"Lua code example showing Object, Animal, and Cat classes with inheritance relationships and methods.\" class=\"wp-image-57850 lazyload\" title=\"Lua Object-Oriented Programming Example\" data-src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2026\/11\/lua-object-oriented-programming-example.png\"><\/a><\/figure>\n\n\n\n\n\n\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\n\n\n<script type=\"application\/ld+json\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"ImageObject\",\n  \"contentUrl\": \"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2026\/11\/lua-programming-tutorial.png\",\n  \"url\": \"https:\/\/mobisoftinfotech.com\/resources\/blog\/lua\/lua-programming-tutorial\",\n  \"name\": \"Lua Programming Tutorial for Beginners\",\n  \"caption\": \"Explore Lua programming basics, sample code, scripting concepts, and mobile game development.\",\n  \"description\": \"An illustrative Lua programming tutorial covering sample Lua code, scripting concepts, and the use of Lua in mobile game development.\",\n  \"license\": \"https:\/\/mobisoftinfotech.com\/terms\",\n  \"acquireLicensePage\": \"https:\/\/mobisoftinfotech.com\/acquire-license\",\n  \"creditText\": \"Mobisoft Infotech\",\n  \"copyrightNotice\": \"Mobisoft Infotech\",\n  \"creator\": {\n    \"@type\": \"Organization\",\n    \"name\": \"Mobisoft Infotech\"\n  },\n  \"thumbnail\": \"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2026\/11\/lua-programming-tutorial.png\"\n}\n<\/script>\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":57956,"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 v28.9 - 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=\"2026-11-04T13:27:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2026\/11\/og-lua-programming-tutorial.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"525\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Pritam Barhate\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Lua Programming Tutorial for Beginners\" \/>\n<meta name=\"twitter:description\" content=\"A Mobisoft Infotech-branded illustration introducing Lua programming for developers familiar with C, C++, Java, and Objective-C. The banner highlights basic Lua syntax, scripting concepts, and mobile game development applications.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2026\/11\/og-lua-programming-tutorial.png\" \/>\n<meta name=\"twitter:creator\" content=\"@MobisoftInfo\" \/>\n<meta name=\"twitter:site\" content=\"@MobisoftInfo\" \/>\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\":\"2026-11-04T13:27:31+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\\\/2026\\\/11\\\/lua-programming-tutorial.png\",\"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\\\/2026\\\/11\\\/lua-programming-tutorial.png\",\"datePublished\":\"2011-12-21T19:24:26+00:00\",\"dateModified\":\"2026-11-04T13:27:31+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\\\/2026\\\/11\\\/lua-programming-tutorial.png\",\"contentUrl\":\"https:\\\/\\\/mobisoftinfotech.com\\\/resources\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/lua-programming-tutorial.png\",\"width\":1672,\"height\":941,\"caption\":\"Lua programming tutorial illustration showing sample Lua code, scripting, and mobile game development.\"},{\"@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":"2026-11-04T13:27:31+00:00","og_image":[{"width":1000,"height":525,"url":"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2026\/11\/og-lua-programming-tutorial.png","type":"image\/png"}],"author":"Pritam Barhate","twitter_card":"summary_large_image","twitter_title":"Lua Programming Tutorial for Beginners","twitter_description":"A Mobisoft Infotech-branded illustration introducing Lua programming for developers familiar with C, C++, Java, and Objective-C. The banner highlights basic Lua syntax, scripting concepts, and mobile game development applications.","twitter_image":"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2026\/11\/og-lua-programming-tutorial.png","twitter_creator":"@MobisoftInfo","twitter_site":"@MobisoftInfo","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":"2026-11-04T13:27:31+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\/2026\/11\/lua-programming-tutorial.png","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\/2026\/11\/lua-programming-tutorial.png","datePublished":"2011-12-21T19:24:26+00:00","dateModified":"2026-11-04T13:27:31+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\/2026\/11\/lua-programming-tutorial.png","contentUrl":"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2026\/11\/lua-programming-tutorial.png","width":1672,"height":941,"caption":"Lua programming tutorial illustration showing sample Lua code, scripting, and mobile game development."},{"@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":19,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/posts\/1461\/revisions"}],"predecessor-version":[{"id":58006,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/posts\/1461\/revisions\/58006"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/media\/57956"}],"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}]}}