Lua Programming Help
Solarus:You can learn the basics of Lua in the Solarus editor. There is a terminal that shows up when one play tests the game.
Android:The best tool to use for learning the basics of Lua on android is an app called
Lua Scripting. You can run lua scripts and there are example scripts that come with it. The print(variable) will not work unless it is Screen:Print(variable). That will be the only issue, but I tested it with a lot of my scripts and it works very well. No sound or image file display, but it has some basic draw features. You can create sprites with code if you are a masochist.
Another good app for android is a lua book called
Learn Lua. It can be used for quick lua reference or learning.
Ubuntu 12.04 precise Linux Lua installation: Installing Lua on Linux:
Here or this one
here for information on installing different versions on Ubuntu. I hear people are having trouble installing lua on later version after Ubuntu 12.04 precise.
Online Lua Compilers:Tutorialpoint Online Lua Compiler:
Here-Tutorialpoint compiler has many options on it.
Repl Lua Compiler:
Here-A simpler online compiler for quick tests. It could be good for the learning process too.
Windows Installation:I recommend just using
ZeroBraneI do not use Windows for programming because it is much easier on Linux, but here is what I could find on it.
Tutorialpoint has Windows and Mac installation instructions.
HereInstalling Lua on Windows:
Here (You might want to check out the video on Luaforge instead.)
LuaForge for Windows:
Here and a
video series to help you with that.
IDE: (For Windows and Linux)
ZeroBrane is a good lightweight IDE
Books or PDF:TutorialPoint is always be helpful with programming. Here is a
offline book version of the lua Section. You can learn C++ and a bunch of other languages at tutorialpoint too, but only Lua is needed for Solarus. The PDF is free, but there is an option to buy it for $10.
Lua 5.1 Manual:Lua ManualFree Lua Book:Lua BookBasic Lua Tutorials:A List of
Lua tutorialsSolarus French and English Series:The new Solarus 1.5 tutorial series:
HereThis is an older
French Tutorial series. It might still be useful for programming, Solarus history, and finding out some things the
English series does not mention.
For Solarus 1.4.5 I confirmed (Maybe for 1.5 too) that the following tutorials still work for the old French series.
Tutorial Create a game with Solarus - E25 Sprites
Tutorial Create a game with Solarus - E29 Fighting
Tutorial Create a game with Solarus - E30 Guard with sword
Tutorial Create a game with Solarus - E31 Guard that identifies the player
Tutorial Create a game with Solarus - E36 Blocks
Tutorial Create a game with Solarus - E37 Police A Link to the Past
Tutorial Create a game with Solarus - E38 System day-night fog
Tutorial Create a game with Solarus - E39 Reusable enemies
Tutorial Create a game with Solarus - E40 Separators
Tutorial Create a game with Solarus - E48 Crystal Switches
Tutorial Create a game with Solarus - E50 Kinematics move the hero
Tutorial Create a game with Solarus - E51 Kinematics move a NPC
Solarus documentation: This is very useful and the first thing I did was read it all. You can find it online and a pdf version:
HereSolarus Game Source Code:Here