~npisanti/scriptools

ce65c32ed6c8457b16ec930b0bf5446d44638acf — Nicola Pisanti a month ago e82d815
minor tweaks
2 files changed, 10 insertions(+), 3 deletions(-)

M shader/main.lua
M shaderdrop/main.lua
M shader/main.lua => shader/main.lua +9 -2
@@ 5,11 5,15 @@ require "strict"
window.title( " " )

if args.count() > 0 then 
	-- TODO: compare arg to ".frag" here 
    frag.load( args.get(0), "glsl" ) 
end    
else
	window.quit()
end
  
if args.count() > 1 then 
    window.title( args.get(1) )
	title =  args.get(1)
    window.title( title )
end  

local w = 480 


@@ 35,6 39,9 @@ end

----------------------------------------------------
function loop()
	-- activate to know fps 
	--window.title( window.get_framerate().."f | "..title )

    layer.open()
        rl.clear(0,0,0,0)
    layer.close() 

M shaderdrop/main.lua => shaderdrop/main.lua +1 -1
@@ 62,7 62,7 @@ function loop()

	clock = clock + 1 

	if( key.pressed( key.space ) )then 
	if key.pressed( key.space ) then 
		blackground = not blackground;
	end
end