removed cart lua
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
local counter = 0
|
||||
|
||||
function frame()
|
||||
while counter < 100 do
|
||||
counter = counter + 1
|
||||
if counter == 50 then
|
||||
log.write("Halfway there")
|
||||
end
|
||||
end
|
||||
|
||||
local x = counter
|
||||
gfx.fillRect(0, 0, x, x, color.indigo)
|
||||
end
|
||||
@@ -0,0 +1,11 @@
|
||||
function frame()
|
||||
local x = 10
|
||||
local y = 20
|
||||
local result = x + y
|
||||
|
||||
if result > 25 then
|
||||
gfx.clear(color.green)
|
||||
else
|
||||
gfx.clear(color.red)
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"script_fe": "lua",
|
||||
"entry": "hello.lua",
|
||||
"out": "program.pbc",
|
||||
"emit_disasm": true,
|
||||
"emit_symbols": true
|
||||
}
|
||||
Reference in New Issue
Block a user