From db5083d46e26b88c428831e7b45b46e918b3c98e Mon Sep 17 00:00:00 2001 From: Martin Felis Date: Wed, 4 Dec 2013 00:53:32 +0100 Subject: [PATCH] tweaked stuff --- README.md | 27 +++++++++++++++++++++++++++ assets/testfile.lua~ | 6 ------ 2 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 README.md delete mode 100644 assets/testfile.lua~ diff --git a/README.md b/README.md new file mode 100644 index 00000000..0b7f2afd --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +Android Native + SDL2 + Lua Example +Copyright (c) 2013 Martin Felis + +This is a simple example that integrates SDL2 and Lua in a Android +App that uses the Android NDK. + +Instructions: +------------- + +Install the Android SDK and Android NDK and run + + ndk-build + +in the root folder of this project. + +Features: +--------- +* loading and running of a Lua script +* modification of the color using Lua +* reacting on a touch event using Lua code +* calling a lua function on every frame that does stuff + +License: +-------- + +This code is public domain, so feel free to do whatever you want with it. +No liability however. diff --git a/assets/testfile.lua~ b/assets/testfile.lua~ deleted file mode 100644 index 315ffe93..00000000 --- a/assets/testfile.lua~ +++ /dev/null @@ -1,6 +0,0 @@ -engine.log("logginf from FIIILLLEEEE") -engine.set_color (1., 0., 0.) - -function on_touch(x, y) - engine.log ("got touch at " .. tostring(x) .. "," .. tostring(y)) -end