Hi everyone,
first, we would like to present our new game built in Corona SDK. Try it out and rate / share if you like it:
- https://itunes.apple.com/app/id939388421
- https://play.google.com/store/apps/details?id=com.roosterbee.quglitza
Game description:
Put your reflexes to the test with unique, simple and challenging gameplay. Quglitza (little ball) is an original and revolutionary game. As in, you literally need to rotate the colored edges of the screen to match the color of the ball and bounce it onwards. This never-before-seen gameplay is intuitive and easy to learn, but infamously difficult to master.
[youtube]https://www.youtube.com/watch?v=qsuZAxAqSYE[/youtube]
Second, we would like to share a ORM-like module that we used in this app to handle database operations (mostly application / user parameters).
We called it CoronaDatabaseManager bacause it handles DB connection and contains adapters to each databas table. We have shared a fully functional parametars adapter used for saving and loading application / user parameters. You are free to add you own adapters but parametars is basiclly all that we need for simpler games built in Corona SDK like the one presented above.
This new module is connected to CoronaAdvancedLogging module that we have published earlier so that every SQL query gets automaticly logged in console and log files (Documents Directory). It is a much elegant way to handle database operations, check it out on GitHub:
Repository URL: https://github.com/promptcode/CoronaDatabaseManager
[lua]
– REQUIRE MODULES
local log = require(“utility.log”)
local dba = require(“database.dba”)
local params = require(“database.tables.params”)
– Main function, called on applications first start
local function main()
– SETUP DATABASE MODULE
dba:openConnection(“test_db”, nil, true)
dba:createTables()
– SETUP ADVANCED LOGGING MODULE
log:set(dba.db, “youremail@gmail.com”)
– Get parameter
local p1 = params:get(“application.version”)
log:log(“Application verson”, p1)
– Update parametar
local incremented = tonumber(p1) + 1
params:update(“application.version”, incremented)
– Get parameter again
local p2 = params:get(“application.version”)
log:log(“Application verson”, p2)
end
[/lua]
Daniel