About Dr. Burton

Posts by Dr. Burton:


Learning Lua Scripting- Part 4: Working with Strings

Posted by Dr. Burton on March 14, 2017 in Amazon Lumberyard, Corona, Lua, Tutorials |

In this tutorial, part 4 of our series on learning Lua scripting, we will look at some of the tools available for working with Strings in Lua.


Concatenation in an important concept in all programming languages.  In Lua, concatenation is accomplished by using two periods in a series or ..
[codebox 1]

There are many escape sequences available in Lua including newline:
[codebox 2]

The example adds a new line (\n), a tab at the beginning of the newline (\t), and quotes around the word “newline”.  One caveat to using escape sequences; they do not require any spaces around them.

One last tip for creating strings in Lua.  If you want to create a multi-line string, you can use [[ ]] to encapsulate the string.
[codebox 3]



If you would like print resources, there are several books on Lua available.

Programming in Lua by Roberto Ierusalimschy, one of the lead architects of Lua.  Great technical intro to the language.

Lua 5.2 Reference Manual
also by Roberto Ierusalimschy, is, as the name implies, a less expensive reference manual.  Useful for the experienced coder who just needs to look up some of the details of
the language.

Lua Programming Gems by L. de Figueiredo, W. Celes, and R. Ierusalimschy is an older (2008) collection of code snippets that can be useful.

Editor –

We used the Zerobrane editor in all of our video demonstrations.

Our books:
We have several books on Corona and Amazon Lumberyard (both of which use Lua as their scripting language):
Learning Mobile Application & Game Development with Corona – Learn to program in Lua and how to make mobile apps! eTextbook for those who are new to programming.

Beginning Mobile App Development with Corona – Introduces mobile application development for those who already know how to program.

Game Design Fundamentals with Amazon Lumberyard – For those who are new 3D Game development, this eTextbook introduces how to make a game using Blender, GIMP, and Amazon Lumberyard.

The idea of writing a textbook on the Lua Scripting language has been floated to me.  While I greatly value Dr. Ierusalimschy, our styles of instruction are very different.  Leave me a comment if you would like to see a Lua Scripting textbook.


Next Lesson: Part 5 – Math and Math Library

Tags: , ,


Learning Lua Scripting – Part 3: Variables

Posted by Dr. Burton on March 14, 2017 in Amazon Lumberyard, Corona, Lua, Lumberyard, Tutorials |

Part 3 of our tutorial series on the Lua scripting language.  In this tutorial we explore the variable system in Lua. Lua uses an untyped variable declaration system.  That means that you do not need to decide on what type a variable is, just declare it with the keyword local. Lua variables can store nil, […]

Tags: , , , ,


Learning Lua Scripting – Part 2: Print and Comments

Posted by Dr. Burton on March 14, 2017 in Amazon Lumberyard, Corona, Lua, Lumberyard, Tutorials |

In this Learning Lua Scripting tutorial, we will cover the use of print for displaying information to the console and how to comment a line. Tutorial While I go into a much longer explanation in the video, here is the least you need to know: Using print, you can easily see where you are at […]


Learning Lua Scripting – Part 1

Posted by Dr. Burton on March 14, 2017 in Amazon Lumberyard, Corona, Lua |

Lua has become an important player in the world of scripting. It is the scripting language used in Amazon Lumberyard, Corona SDK, World of Warcraft, Adobe Lightroom, Love2D and many, many other systems. Why Lua? Lua has become so popular because it is very light weight to include as a scripting language (37K!), it is […]

Tags: , , ,

Learn to make Apps and Games!

Posted by Dr. Burton on January 15, 2017 in Uncategorized |

Burtons Media Group is dedicated to providing the connection between technology and education. We have 3 textbook nearing completion: Game Design Fundamentals with Amazon Lumberyard: Space Explorer  – teaches the full 3D game development pipeline using only free resources: Blender, GIMP, and Amazon Lumberyard.  You will build and publish a basic space shooter! Current version: […]


Learning Lua

Posted by Dr. Burton on July 1, 2016 in Corona, Lumberyard, Mobile, Tutorials |

The Lua scripting language has been rapidly gaining in popularity over the last several years.  It is now the core of many popular tools including (but not limited to) Corona SDK, Amazon Lumberyard,  Autodesk Stingray, and WoW. As I have been preparing for my classes, I recognized that a series of tutorials in the Lua […]


8 Game Engines for your Next Project

Posted by Dr. Burton on March 27, 2016 in Corona, Game Development, Lumberyard, Mobile, Unity3D |

So you want to make that killer game ?!  If you want to jump into making the game, then you don’t want to spend time writing the engine (rendering, physics, sound, etc).  Here are a few top picks in game engines: Cocos2D Cocos2D is an open source (free) engine (LGPL MIT license) available for developing […]

Tags: , , , , , , , , , ,


New Books Coming Soon!!

Posted by Dr. Burton on March 27, 2016 in Cloud Computing, Corona, Education, Game Development, Lumberyard, Mobile |

We have been working on several new textbooks here a Burtons Media Group. Isometric Game Development with Corona SDK (tentative title) is a new, intermediate level book that shows how to create isometric-style games using the Corona SDK.   Game Development Fundamentals: Lumberyard & Blender (tentative title) is a new series on developing games using Amazon […]

Tags: , , ,


The Cloud, 3D Worlds, and beyond!

Posted by Dr. Burton on December 31, 2014 in Uncategorized |

There are many exciting projects in the works here at Burtons Media Group. We have been spending a lot of time in the cloud lately. There are several books, apps, and games in development that are dependent on a strong backend service to handle the multi-player/multi-user aspects.  We have settled on Coronium.io and Coronium.GS for handling […]


Corona Graphics 2.0: Composite.reflect

Posted by Dr. Burton on June 30, 2014 in Corona, Mobile |

While I have made an effort to document all of the composite, effects, and generators for Graphics 2.0 in my Corona books (see the Books tab above), there were a few that do not have a direct translation to a similar effect in Photoshop or other graphic editing tool.  Thus, I thought I would take […]

Copyright © 2010-2019 Burtons Media Group All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.5, from BuyNowShop.com.