Skip to content

Instantly share code, notes, and snippets.

Avatar
🐧
¯\_(ツ)_/¯

Niels van Velzen nielsvanvelzen

🐧
¯\_(ツ)_/¯
View GitHub Profile
View interface_test.lua
local width = 1600
local height = 900
-- Create window & show loading message
window.create(width, height, "Interface test")
canvas.init()
canvas.beginFrame(width, height, 1.0)
canvas.createFont("Open Sans", "test/font/OpenSans-Regular.ttf")
canvas.fontFace("Open Sans")
canvas.fontSize(24)
@nielsvanvelzen
nielsvanvelzen / main.lua
Last active Dec 12, 2015
LUA script for game engine.
View main.lua
local width = 1600
local height = 900
window.create(width, height, "LuaGame") -- width, height, title
canvas.init();
local ticks = 0
local x = 0
local y = 0
local xBackwards = false
You can’t perform that action at this time.