GlyEngine 0.1.2
Create games and apps with lua
Loading...
Searching...
No Matches
Wellcome!

@wellcome

https://wellcome.gamely.com.br

Precondition
require storage json
Author
RodrigoDornelles
Version
1.0.0
Brief

say -Wellcome!- in firsty entry and -Wellcome Back- for returning visitors.

Source Code
local function init(std, props)
props.exclamation = '!'
std.storage.get('message'):as('exclamation'):default('!!')
:callback(function() std.storage.set('message', ' back!'):run() end)
:run()
end
local function loop(std, props)
end
local function draw(std, props)
std.draw.clear(std.color.blue)
std.draw.color(std.color.white)
std.text.font_size(16)
std.text.print(std.text.print_ex(8, 8, 'Wellcome') + 8, 8, tostring(props.exclamation))
end
local function exit(std, props)
end
local P = {
meta={
title='Wellcome!',
author='RodrigoDornelles',
description='say -Wellcome!- in firsty entry and -Wellcome Back- for returning visitors.',
version='1.0.0'
},
config={
require='storage json'
},
init=init,
loop=loop,
draw=draw,
}
}
return P;
local function exit()
local function title(window_name)
local function as(name, cast)
local function callbacks(handler)
local function default(value)
local function print(pos_x, pos_y, text)
std.text.print