mirror of
https://github.com/litruv/picoGraph.git
synced 2026-07-25 11:16:04 +10:00
updated graph rendering to be more efficient. added smooth scrolling, added color type, mmb drag for cutting
This commit is contained in:
51
public/pico8-cart.p8
Normal file
51
public/pico8-cart.p8
Normal file
@@ -0,0 +1,51 @@
|
||||
pico-8 cartridge // http://www.pico-8.com
|
||||
version 41
|
||||
__lua__
|
||||
-- Generated with picoGraph
|
||||
|
||||
zzzz = ""
|
||||
offset = 0
|
||||
color = 5
|
||||
var1 = nil
|
||||
|
||||
function _update()
|
||||
-- sequence a
|
||||
cls()
|
||||
offset = 0
|
||||
-- sequence b
|
||||
if btn(0, 0) then
|
||||
print("left", 0, offset, rnd((16) + (1)))
|
||||
custom_addoffset()
|
||||
end
|
||||
-- sequence c
|
||||
if btn(1, 0) then
|
||||
print("right", 0, offset, color)
|
||||
local itsalocalvariable = true
|
||||
if itsalocalvariable then
|
||||
custom_addoffset()
|
||||
end
|
||||
end
|
||||
-- sequence d
|
||||
if btn(2, 0) then
|
||||
print("up", 0, offset, color)
|
||||
custom_addoffset()
|
||||
end
|
||||
-- sequence e
|
||||
if btn(3, 0) then
|
||||
print("down", 0, offset, color)
|
||||
custom_addoffset()
|
||||
end
|
||||
end
|
||||
|
||||
function custom_addoffset()
|
||||
offset = (offset) + (7)
|
||||
end
|
||||
__gfx__
|
||||
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
Reference in New Issue
Block a user