Skip to content
Permalink
Browse files
Adding team_disposable's videopirate
  • Loading branch information
josefnpat committed Sep 29, 2016
1 parent 60c0707 commit 8dc9204dc3e2866ad720602d94c7a5efb430f171
Showing with 178 additions and 41 deletions.
  1. +8 −8 collab_2/gfx/gfx0
  2. +32 −32 collab_2/gfx/gfx2
  3. +138 −1 collab_2/lua/15.lua
@@ -22,11 +22,11 @@
88e88e8844464644aa9aa9aabb3bb3bb155555561111111111111111111711110000000000000000000000000000000000000000000000000000000000000000
8888888846664664aaaaaaaabbbbbbbb151151161111111111111111111111110000000000000000000000000000000000000000000000000000000000000000
8888888844444444aaaaaaaabbbbbbbb155555561111111111111111111111110000000000000000000000000000000000000000000000000000000000000000
ccccccccddddddddeeeeeeee88888888555555553333333311111111333333330000000000000000000000000000000000000000000000000000000000000000
ccccccccddddddddeeeeeeee88222288555775553313133311777711331313330000000000000000000000000000000000000000000000000000000000000000
ccdccdccddcddcddee2ee2ee82888828555775553331333317776771333133330000000000000000000000000000000000000000000000000000000000000000
cccddcccdddccdddeee22eee82822828555775553333333317777571333333330000000000000000000000000000000000000000000000000000000000000000
cccddcccdddccdddeee22eee82822828555775553333313117777771333331310000000000000000000000000000000000000000000000000000000000000000
ccdccdccddcddcddee2ee2ee82888828555775553333331617777771633333130000000000000000000000000000000000000000000000000000000000000000
ccccccccddddddddeeeeeeee88222288555775553333336611777711663333330000000000000000000000000000000000000000000000000000000000000000
ccccccccddddddddeeeeeeee88888888555555553333366511111111566333330000000000000000000000000000000000000000000000000000000000000000
ccccccccdddddddd0555555088888888555555553333333311111111333333330000000000000000000000000000000000000000000000000000000000000000
ccccccccdddddddd0566665088222288555775553313133311777711331313330000000000000000000000000000000000000000000000000000000000000000
ccdccdccddcddcdd0656656082888828555775553331333317776771333133330000000000000000000000000000000000000000000000000000000000000000
cccddcccdddccddd0666666082822828555775553333333317777571333333330000000000000000000000000000000000000000000000000000000000000000
cccddcccdddccddd5000000d82822828555775553333313117777771333331310000000000000000000000000000000000000000000000000000000000000000
ccdccdccddcddcdd0555ddd082888828555775553333331617777771633333130000000000000000000000000000000000000000000000000000000000000000
ccccccccdddddddd0ddd555088222288555775553333336611777711663333330000000000000000000000000000000000000000000000000000000000000000
ccccccccddddddddd000000588888888555555553333366511111111566333330000000000000000000000000000000000000000000000000000000000000000
@@ -1,32 +1,32 @@
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000040440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000044440000002200000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000044ffff000022220000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000004ff5f5000045420000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000004fffff000444420000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000fffff000044422000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000ffff0000000022000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000009999000005555500000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000099aaa990044444500000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000099aa4a490444444500000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000099aaa9995555544500000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000009aa99905667540500000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000099a99905677500000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000009999005555500000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000009990005000500000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000040040000555555555555000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000040040005444444444444500000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000044440054400000000004450000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000606000000054450054000000000000450000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000565000604044440454000000000000450000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000666d6d600446644054000000000000450000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000dd6d600044440054000000000000450000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000600600400004054000000000000450000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000054000000000000450000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000054000000000000450000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000054000000000000450000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000004444444444444400000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000005555666666555500000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000005555555555555500000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000005000000000000500000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000005000000000000500000000000000000000000000000000000000000000000000000000000000000
@@ -1 +1,138 @@
add(games,{name="tbd",author="tbd",_update = function() win() end}) -- game 15
add(games,{
name="videopirate",
author="team_disposable",
_update = function()
cls()

if(gameover == false) then

if(cliptimer <= 0) then

if(clipqueue[1] != null) then

sprite1,sprite2,val1,val2,val3,val4,nextclip = {5,5,32,40,rnd(4),(flr(rnd(6.9))+1) * 8},{6,6,60,40,rnd(4),(flr(rnd(6.9))+1) * 8},0,0,0,0,clipqueue[#clipqueue]

del(clipqueue,nextclip)
cliptimer += nextclip[2]

if(nextclip[1] == 0) val1,val2,val3,val4 = 32,64,40,72

if(nextclip[1] == 1) val1,val2,val3,val4 = 32,64,40,64

if(nextclip[1] == 2) val1,val2,val3,val4 = 32,72,40,80

if(nextclip[1] == 3) val1,val2,val3,val4 = 32,80,40,64

sprite1[1],sprite1[2], sprite2[1],sprite2[2] = val1,val2,val3,val4
else

gameover = true
--end the game

end


end -- end of cliptimer is 0

--draw the clip

adjust = rnd(8)
adjust2 = rnd(8)

sspr(sprite1[1],sprite1[2],8,8,sprite1[3]+adjust,sprite1[4]+adjust2,sprite1[6],sprite1[6])
--sx sy sw sh dx dy [dw dh] [flip_x] [flip_y]
sspr(sprite2[1],sprite2[2],8,8,sprite2[3]+adjust2,sprite2[4]+adjust,sprite2[6],sprite2[6])


--update obstructions
obs = nextclip[3]
if(#obs == 0) success += 1 cliptimer = 0
for o in all(obs) do

--{typeofobstruction,directionofobstruction,burstfreq,burstduration,burst_delaystart})
if(o[1] < 1) then

--static

--controls to fix
if(btn(o[2])) o[3] -= 0.3



for i=1,o[3],1 do
for j=1,40,1 do

pset(rnd(90)+19,rnd(80)+19,3)


end

end



else

--lines
if(btnp(4)) o[3] -= 1
liney = rnd(40)+29
for i = 19,109,5 do

line(i,liney,i+o[3],liney+o[3],14)

end



end
if(o[3] <= 0) del(obs,o)

end


--draw the tv

sspr(48,80,16,16,4,4,120,120)



cliptimer -=1

print(cliptimer,100,10,15)

else

print("you pirated "..success.." out of "..total.." tapes",5,50,15)

end


end,

_init = function(self)

clipqueue,cliptimer,gameover,success = {},0,false,0

nextclip = null
--difficulty = 10
sprite1= null
sprite2 = null


--populate queue
for difficulty = 10,0,-1 do

obstructions = {}
for i=1,difficulty,1 do

add(obstructions,{rnd(1.9),flr(rnd(3.9)),difficulty})

end
add(clipqueue,{flr(rnd(3.9)),difficulty * 50,obstructions})

end

total = #clipqueue

end
}) -- game 15

0 comments on commit 8dc9204

Please sign in to comment.