GlyEngine 0.3.2
Create games and apps with lua
Loading...
Searching...
No Matches
Javascript

Create games and apps with javascript.

Precondition
Javascript is only supported in HTML5 platfoms exclusively with WebAssembly (wasmoon), it cannot be build with --fengari flag.
Warning
Is not recommended using the classic TSC (and similar) compiler from typescript to javascript, you can get better profits using TSTL which works with target lua, more information on the Typescript page.
Template
const Game = {
meta: {
title: "Your Awesome Game",
author: "IntellectualAuthor",
description: "The best game in the world made in GlyEngine",
version: "1.0.0"
},
init: (std) => {
},
loop: (std) => {
},
draw: (std) => {
},
exit: (std) => {
}
}
}
local function exit()
@decorator
local function title(window_name)
@decorator
local function draw(src, pos_x, pos_y)
local function callbacks(handler)