Skip to content

Commit

Permalink
Monday Byte Night
Browse files Browse the repository at this point in the history
  • Loading branch information
totetmatt committed Aug 28, 2024
1 parent 24156b0 commit 4830f7c
Show file tree
Hide file tree
Showing 17 changed files with 804 additions and 0 deletions.
140 changes: 140 additions & 0 deletions public/data/2024_08_26_byte_jam_monday_night_bytes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
{
"title": "Monday Night Bytes",
"started": "2024-08-26",
"date": "26 August 2024",
"type": "Byte Jam",
"website": "",
"flyer": "",
"vod":"",
"software_used": [
{
"name": "TIC-80 FFT Hack",
"url": "https://github.com/aliceisjustplaying/TIC-80/releases/tag/v0.0.5",
"version": "tic80showdown Alice fork v0.0.5",
"purpose": "Graphic"
}
],
"phases": [
{
"title": null,
"vod": null,
"entries": [
{
"id": null,
"rank": null,
"points": null,
"handle": {
"name": "Catnip",
"demozoo_id": 113525
},
"shadertoy_url": null,
"preview_image": "2024_08_26_byte_jam_monday_night_bytes/catnip.png",
"source_file": "/shader_file_sources/2024_08_26_byte_jam_monday_night_bytes/catnip.lua"
},
{
"id": null,
"rank": null,
"points": null,
"handle": {
"name": "enfys",
"demozoo_id": 89891
},
"shadertoy_url": null,
"preview_image": "2024_08_26_byte_jam_monday_night_bytes/enfys.png",
"source_file": "/shader_file_sources/2024_08_26_byte_jam_monday_night_bytes/enfys.lua"
},
{
"id": null,
"rank": null,
"points": null,
"handle": {
"name": "g33kou",
"demozoo_id": 143232
},
"shadertoy_url": null,
"preview_image": "2024_08_26_byte_jam_monday_night_bytes/g33kou.png",
"source_file": "/shader_file_sources/2024_08_26_byte_jam_monday_night_bytes/g33kou.lua"
},
{
"id": null,
"rank": null,
"points": null,
"handle": {
"name": "henearxn",
"demozoo_id": 135712
},
"shadertoy_url": null,
"preview_image": "2024_08_26_byte_jam_monday_night_bytes/henearxn.png",
"source_file": "/shader_file_sources/2024_08_26_byte_jam_monday_night_bytes/henearxn.lua"
},
{
"id": null,
"rank": null,
"points": null,
"handle": {
"name": "jtruk",
"demozoo_id": 135705
},
"shadertoy_url": null,
"preview_image": "2024_08_26_byte_jam_monday_night_bytes/jtruk.png",
"source_file": "/shader_file_sources/2024_08_26_byte_jam_monday_night_bytes/jtruk.lua"
},
{
"id": null,
"rank": null,
"points": null,
"handle": {
"name": "lynn",
"demozoo_id": null
},
"shadertoy_url": null,
"preview_image": "2024_08_26_byte_jam_monday_night_bytes/lynn.png",
"source_file": "/shader_file_sources/2024_08_26_byte_jam_monday_night_bytes/lynn.lua"
},
{
"id": null,
"rank": null,
"points": null,
"handle": {
"name": "stormcaller",
"demozoo_id": 118528
},
"shadertoy_url": null,
"preview_image": "2024_08_26_byte_jam_monday_night_bytes/stormcaller.png",
"source_file": "/shader_file_sources/2024_08_26_byte_jam_monday_night_bytes/stormcaller.lua"
},
{
"id": null,
"rank": null,
"points": null,
"handle": {
"name": "vurpo",
"demozoo_id": 138609
},
"shadertoy_url": null,
"preview_image": "2024_08_26_byte_jam_monday_night_bytes/vurpo.png",
"source_file": "/shader_file_sources/2024_08_26_byte_jam_monday_night_bytes/vurpo.lua"
}
],
"staffs": [
{
"handle": {
"name": "pumpuli",
"demozoo_id": 22208
},
"job": "Live set"
}
]
}
],
"staffs": [
{
"handle": {
"name": "Aldroid",
"demozoo_id": 63755
},
"job": "Organizers"
}
],
"demozoo_party_id": "LCDZFFCM"
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
-- pos: 0,0
sin=math.sin
cos=math.cos
abs=math.abs
pi=math.pi
rand=math.random
max=math.max

for i=0,15 do
if i==15 then
poke(16320+i*3+0,255)
poke(16320+i*3+1,200)
poke(16320+i*3+2,0)
else
poke(16320+i*3+0,i*8)
poke(16320+i*3+1,i*8)
poke(16320+i*3+2,i*7.5)
end
end
vbank(1)
for i=0,15 do
if i==15 then
poke(16320+i*3+0,255)
poke(16320+i*3+1,200)
poke(16320+i*3+2,0)
else
poke(16320+i*3+0,i*8)
poke(16320+i*3+1,i*8)
poke(16320+i*3+2,i*7.5)
end
end

t=0

function cl()
--if fft(0,10)<0.7 then
--memcpy(0,120,16320-120)
--for i=0,5000 do
--pix(rand()*240, rand()*136,0)
--end
for y=0,135 do
for x=t%2,240,2 do
pix(x,y,max(0,pix(x,y)+rand()*2-1))
end
end
--else
--cls()
--end
end

bt=0

function owl()
-- now draw the rest of the fucking
-- owl

-- wings
local y=sin(t/12+.1)*30+60
local yo=cos(t/12)
local yt=0
for i=0,17 do
--local sx=6-(i/17)*2
local x=36+i*4
local yp=y-yt
yt=i<10 and yt+yo or yt+yo*3
local h=abs(i-10) --10..0..7
h=(10-h)/20+.5
for j=0,8 do
elli(120-x,yp+4-j*2*h,6,4,1+j*1.5)
elli(120+x,yp+4-j*2*h,6,4,1+j*1.5)
end
end

-- body
y=sin(t/12-.1)*30+60
elli(120,y+5,36,23,10)

-- head
y=sin(t/12)*30+60
elli(120,y,30,20,14)
elli(120-10,y-5,5,5,15)
elli(120+10,y-5,5,5,15)
elli(120-10,y-5,3,3,0)
elli(120+10,y-5,3,3,0)
tri(120,y+10,120-4,y,120+4,y,5)
tri(
120-10,y-15,
120-15,y-13,
120-27,y-30,
12)
tri(
120-15,y-13,
120-19,y-12,
120-28,y-30,
10)
tri(
120+10,y-15,
120+15,y-13,
120+27,y-30,
12)
tri(
120+15,y-13,
120+19,y-12,
120+28,y-30,
10)
--for i=0,15 do
--rect(i*10,0,10,10,i)
--end
end
vbank(0)
cls()

function TIC()
vbank(0)
memcpy(0,0x4000,16320)


vbank(1)
local p0={x=sin(bt/25)*4,y=sin(bt/26)*4}
local p1={x=240+sin(bt/27)*4,y=sin(bt/28)*4}
local p2={x=sin(bt/29)*4,y=136+sin(bt/30)*4}
local p3={x=240+sin(bt/31)*4,y=136+sin(bt/32)*4}
ttri(
0,0,
240,0,
0,136,
p0.x,p0.y,
p1.x,p1.y,
p2.x,p2.y,
2)
ttri(
240,0,
0,136,
240,136,
p1.x,p1.y,
p2.x,p2.y,
p3.x,p3.y,
2)
cl()
local b=fft(0,10)
--print("=^^=",5,50-b*30,12,0,10)
owl()
memcpy(0x4000,0,16320)
t=t+1.5
bt=bt+fft(5,10)
end

function SCN(y)
--poke(0x3FF9,fft(y,y+10)*50)
end
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
-- pos: 0,0
b={
x=120,
y=68,
vx=0.5,
vy=0.5,
s=16,
}
p={}
pp=1
c=1
function TIC()
t=time()//32
-- ball
b.x = b.x+b.vx*b.s
b.y = b.y+b.vy*b.s
if b.x>230 or b.x<10 then
b.vx = -b.vx
end
if b.y>126 or b.y<10 then
b.vy = -b.vy
end
r=math.min(fft(0,20)*3,10)
-- color
if fft(100,300) > 2 then -- tune fft for color here
c=c+1
end
if c%16==0 then c=1 end
-- tail
p[pp] = {x=b.x, y=b.y, r=r, c=c}
pp=pp+1
if pp>300 then pp=1 end
-- draw
cls()
for _,v in ipairs(p) do
circb(v.x,v.y,v.r,v.c)
end
circ(b.x,b.y,r,c)
circb(b.x,b.y,r,c+1)
-- angle
if t~=0 and t%1000==0 then
a = math.random()*3.14
b.vx = math.cos(a)
b.vy = math.sin(a)
end
end
Loading

0 comments on commit 4830f7c

Please sign in to comment.