Skip to content

Commit

Permalink
I set up the repo :)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brin-o committed Dec 17, 2021
0 parents commit 5ffc20e
Show file tree
Hide file tree
Showing 14 changed files with 910 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
79 changes: 79 additions & 0 deletions creative/balls.p8
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
pico-8 cartridge // http://www.pico-8.com
version 34
__lua__
cls(rnd(8))
v=0
lv=0
lh=0
function _draw()
local t = time()
v+=t*4
if v<10then
cls(13)
elseif v<10000 then
dither(8000-v*1, 13)
else
dither(8000, 15)
--v=0
--lv=0
--lh=0
--cls(13)
end

for i=-500, 500, 8 do
line(i+t*4,0,0,i+t*4, 15)
end

for i=0, 30, 3.5 do
local r = sin((t+i*0.02)*0.1) --+ sin(i*0.1)
local x = 64+sin(t*0.5+0.06*i)*-29.9*r
local y = 64+sin(t+0.06*i)*-29.9*r
local z = x/18
local c = 15--r%2
circfill(x, y, 10-z, c)
end

if(v>7000) then
lh+=1*5
for i=0, 128, 2 do
line(128,i,128-lh+i,i, 13)
end
if v>8000 then
for i=0,128,2 do
line(0, 0, 0, i, 13)
end
end
end

end
-->8
--tools

function dither(val, c)
for x=1,val do
pset(rnd(128),rnd(128),c)
end
end

-- create a remap?
__gfx__
00000000008008000080080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000008888000088880000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700008dd800008dd80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000008dd800008dd800000aa000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000088888800888888000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700088998800889988000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000800e080080e008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000a00000000a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000030003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000033333000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003330000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003330000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003330000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000080800000606000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000888880006666600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000088800000666000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000008000000060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
53 changes: 53 additions & 0 deletions creative/lines.p8
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
pico-8 cartridge // http://www.pico-8.com
version 34
__lua__
cls(0)
v=0
lv=0
lh=0
t=0
stage = {a = 150, b = 3220}
function _draw()
t+=1
--cls()
if(t<stage.a)then
for i=0,128,3 do
line(i,0 , i, t+sin(time()+i*0.2)*10, 15)
end
elseif(t<stage.b) then
--if(t==stage.a) then t=0 end
circfill(64,64,sin(t)*100,3)
end
print(t, 0,0,2)
end
-->8
--tools

function dither(val, c)
for x=1,val do
pset(rnd(128),rnd(128),c)
end
end

-- create a remap?
__gfx__
00000000008008000080080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000008888000088880000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700008dd800008dd80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000008dd800008dd800000aa000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000088888800888888000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700088998800889988000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000800e080080e008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000a00000000a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000030003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000033333000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003330000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003330000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003330000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000080800000606000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000888880006666600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000088800000666000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000008000000060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
39 changes: 39 additions & 0 deletions creative/patterns.p8
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
pico-8 cartridge // http://www.pico-8.com
version 33
__lua__
local box =
{x = 64, y = 64,
w = 14, h = 14,
}

function _init()
end

function _update()
box.x = 64 + sin(t()*0.5)*8
box.y = 64 + cos(t()*2)*8
end

function _draw()
cls()
rect(box.x - 10, box.y - 10, box.x+10, box.y+10)

fillp(0b1000011001100001)
line(0, 64, box.x, box.y, 9)
line(128,64, box.x, box.y, 10)
line(64, 0, box.x, box.y, 12)
line(64, 128, box.x, box.y, 13)
fillp()

rectfill(box.x-box.w/2, box.y-box.h/2, box.x + box.w/2, box.y + box.h/2, 7)

end


__gfx__
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
23 changes: 23 additions & 0 deletions creative/rotatingline.p8
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
pico-8 cartridge // http://www.pico-8.com
version 34
__lua__
t=0
function _draw()
t+=1
cls(1)
for i=0,10,3 do
local r = (sin(t*0.01)*5)+20
local x1 = 64+sin(t*0.01)*r
local y1 = 64+cos(t*0.01)*r
local x2 = 64-sin(t*0.01)*r
local y2 = 64-cos(t*0.01)*r
line(x1,y1,x2,y2,15)
end
end
__gfx__
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
50 changes: 50 additions & 0 deletions flock.p8
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
pico-8 cartridge // http://www.pico-8.com
version 33
__lua__

function _init()
flock = {}
for i=0,20,1 do
add_new_boid()
end
end

function _draw()
cls()
for f in all(flock) do
f:draw()
end
end

function _update()
for f in all(flock) do
f:update()
end
end
-->8

function add_new_boid()
add(flock,
{
pos = {x = 63, y = 63},
vel = {x = rnd(0.2), y = -0.0001},
acc = {x = 0, y = 0},
draw = function(self)
circfill(self.pos.x, self.pos.y, 1, 2)
end,
update = function(self)
self.pos.x += self.vel.x
self.pos.y += self.vel.y
self.vel.x += self.acc.x
self.vel.y += self.vel.y
end
}
)
end
__gfx__
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
39 changes: 39 additions & 0 deletions learn/interactivity.p8
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
pico-8 cartridge // http://www.pico-8.com
version 33
__lua__
cls(7)


for i=0,25,1 do
pset(rnd(128),rnd(128),rnd(16))
end

function _update()
if btn(❎) then
for i=0,10,1 do
circfill(rnd(128),rnd(128), rnd(5),7)
end
end
end

function _draw()
for g=0,200,1 do
local x=rnd(128)
local y=rnd(128)
local c=pget(x,y)

if c!=7 then
circfill(x,y, 2, c)
end

end


end
__gfx__
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
37 changes: 37 additions & 0 deletions learn/learn1_basics.p8
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
pico-8 cartridge // http://www.pico-8.com
version 33
__lua__
local x,y

function _init()
x,y = 60, 60
end

function _update()
if btn(➡️) then
x+=1
end
if btn(⬅️) then
x-=1
end
if btn(⬆️) then
y-=1
end
if btn(⬇️) then
y+=1
end
end

function _draw()
cls()
rect(0,0,127,127,1)
pset(x,y,3)
end

__gfx__
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
30 changes: 30 additions & 0 deletions learn/loops.p8
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
pico-8 cartridge // http://www.pico-8.com
version 33
__lua__
cls(7)


for i=0,25,1 do
pset(rnd(128),rnd(128),rnd(15) + 1)
end


function _draw()
for g=0,200,1 do
local x=rnd(128)
local y=rnd(128)
local c=pget(x,y)

if c!=7 then
circfill(x,y, 2, c)
end

end
end
__gfx__
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Loading

0 comments on commit 5ffc20e

Please sign in to comment.