Hi guys,
I have spent some time on making a "Tier 3" (unofficial) which allows you to use Lua to make a game with AGK. Currently this is based on AppGameKit Version 2.0.14b; but if people are interested in this I will keep it up to date with latest version of AGK.
So far I have only tested this on Windows, however since both Lua and AppGameKit are cross-platform this should work just fine with every platform that AppGameKit supports.
At the moment the only way to try this is to compile the ".exe" yourself, that way it ensures that you actually own AGK. Maybe Paul or Rick will allow me to release a precompiled "demo" version that auto-closes after a few minutes that way people can at least try it before compiling it (though compiling it should not be very difficult).
The source/necessary files can be found here:
https://github.com/SeanReg/AGK---Lua if you are not familiar with GitHub you can directly download the files from this link here:
https://github.com/SeanReg/AGK---Lua/archive/master.zip
It also comes with two example games which are converted examples from AppGameKit Tier 1. They are:
SnakeSnacker - By Rick Vanner
SmackIt - By The Game Creators (not sure who the programmer is)
Below are some setup instructions:
Setup
Simply download/pull the files and place them into your AppGameKit Native folder.
Open the Template.sln and compile the project (using Visual Studio 2013, but it should work fine with Visual Studio 2015)
Upon a successful compilation a "Template.exe" will appear in the "Final" folder. This .exe can now be used to create games using Lua.
Testing the examples
To try the examples simply copy the "Template.exe" into the example's folder (along side the main.lua script). Run the "Template.exe" and the game will begin to run.
Creating your own game
To make your own game using AGK-Lua simply make a new folder and place the "Template.exe" in it.
Create a "main.lua" script and add the following lua functions to it:
function Setup()
end
function Update()
end
The Setup() function will be called when the application starts and the Update() is your main loop. From there you can call almost all of the AppGameKit functions which can be found here: www.appgamekit.com/documentation/
The only unsupport AppGameKit functions are the math functions simply because Lua has the same functions built in. It is also suggested that you use Lua's string.format() rather than AGK's Str() function.
At the moment there is little to no error handling for improper calls to AppGameKit functions, so when calling an AppGameKit function make sure you are providing it with the correct arguments.
Sean