Skip to content
Permalink
Browse files
Add SFP to menu graphics, reorder it to slot 3
  • Loading branch information
fweez committed Sep 29, 2016
1 parent c73c57a commit ceb2976ace00c703de2ac4326868ad2aed56d30c
Showing with 112 additions and 111 deletions.
  1. +8 −8 collab_2/gfx/gfx0
  2. +103 −1 collab_2/lua/03.lua
  3. +1 −102 collab_2/lua/05.lua
@@ -1,11 +1,11 @@
11111111050000502222222211111111000000000000000000000000000000000000000000000000000000000000000088800000770000000000000000000000
1222222155555555222222221ccdd99102222222222222200dddddddddddddd00000000000000000000000000000000088800000777000000000000000000000
1211112105c00c5022e22e221cc1191102000000000000200d000000000000d00000000000000000000000000000000088000000777000000000000000000000
38888883050cc050222ee2221c11911108888888888888800cccccccccccccc00000000000000000000000000000000000000000000000000000000000000000
82828288050cc050222ee222111911c18882828228282888ccc1c1c11c1c1ccc0000000000000000000000000000000000000000000000000000000000000000
8282828805c00c5022e22e2211911cc18882828228282888ccc1c1c11c1c1ccc0000000000000000000000000000000000000000000000000000000000000000
568888655555555522222222199ddcc1568888888888886565cccccccccccc560000000000000000000000000000000000000000000000000000000000000000
56555565050000502222222211111111560000000000006565000000000000560000000000000000000000000000000000000000000000000000000000000000
1111111105000050ff00800011111111000000000000000000000000000000000000000000000000000000000000000088800000770000000000000000000000
1222222155555555dd0888001ccdd99102222222222222200dddddddddddddd00000000000000000000000000000000088800000777000000000000000000000
1211112105c00c50c00080ff1cc1191102000000000000200d000000000000d00000000000000000000000000000000088000000777000000000000000000000
38888883050cc050cc0000ff1c11911108888888888888800cccccccccccccc00000000000000000000000000000000000000000000000000000000000000000
82828288050cc050c00000dd111911c18882828228282888ccc1c1c11c1c1ccc0000000000000000000000000000000000000000000000000000000000000000
8282828805c00c50000ff00011911cc18882828228282888ccc1c1c11c1c1ccc0000000000000000000000000000000000000000000000000000000000000000
5688886555555555000ff000199ddcc1568888888888886565cccccccccccc560000000000000000000000000000000000000000000000000000000000000000
5655556505000050f00ee00b11111111560000000000006565000000000000560000000000000000000000000000000000000000000000000000000000000000
44444444555555556666666677777777333366555555555555663131333333330000000000000000000000000000000000000000655500000000000000000000
4444444455555555666666667777777733366555555555555556631333131333000000000000000000000000000000000a000000666600000200000000000000
44944944556556556676676677677677336655555555555555556633333133330000000000000000000000000000000000000000556500000000000000000000
@@ -1 +1,103 @@
add(games,{name="tbd",author="tbd",_update = function() win() end}) -- game 3
add(games,{
name="super forum poster 2 turbo dx edition",
author="@fweez",
_update = function()
cls()
map(16,0,0,0,16,16)
color"6"
cursor(0,1)
if not state then
print"super forum poster 2 turbo dx"
if (btnp"4") state = 0
else
print("@"..player.name.." score:"..score.." time:"..timer)
end
if state == 0 then
if (btn"0") player.x -= 1.5
if (btn"1") player.x += 1.5
if (btn"2") player.y -= 1.5
if (btn"3") player.y += 1.5

timer -= 1
if (timer == 0) state = 1
end

local yoff = 33
for a in all(actors) do
if state == 0 then
a.x = mid(8, a.x+a.vx, 122)
if (a.x <= 8 or a.x >= 122) a.vx *= -1
a.y = mid(42, a.y + (a.vy or 0), 116)
end
local s = 64
if a.color then
s = 65
if (a.y >= 116 or a.y <= 42) a.vy *= -1
if a.y <= 42 then
del(actors, a)
add(actors, a)
elseif a.vy > 0 then
for o in all(actors) do
if not o.color and abs(o.y-a.y-7) < 2 and abs(o.x-a.x) <= 6 then
a.name = o.name
a.vy = -1
break
end
end
end
print("thread:"..a.topic.." lp: @"..a.name, 4, yoff, a.color)
if (a.name == player.name and state == 0) score += 1
pal(8, a.color)
yoff -= 6
elseif a == player then
pal(13,14)
end
spr(s, a.x-4, a.y)
pal()
end

cursor(4, 44)
if (state == 1) print"game over"
if not state then
print"dominate the forum! z to start"
print" arrows move. bounce threads,"
print"and dominate the conversation!"
end
end,
_init = function(self)
actors = {}
local function rndchar(l)
local a = flr(rnd(#l))+1
return sub(l, a, a)
end
local function rndactor(p, y)
if (p) y = 116-rnd(60-p)
local alpha = "abcdefghijklmnopqrstuvwxyz"
local a = {
x=8+rnd(112),
y=y,
vx=1 - rnd(2),
name=rndchar(alpha)..rndchar(alpha)..flr(rnd(1000))
}
add(actors, a)
return a
end
for i=1,20 do
rndactor(i*2)
end
local wide = "Œ”…‰‘‚†ŠŽ’–ƒ‡‹“—"
for i=0,4 do
local t = rndactor(nil, 127)
t.vy = -1
t.topic = rndchar(wide)..rndchar(wide)
t.color = 8+i
end
player = rndactor(nil, 64)
player.x = 64
player.vx = 0
score = 0
timer = 1800
state = nil
end,
})

@@ -1,102 +1 @@
add(games,{
name="super forum poster 2 turbo dx edition",
author="@fweez",
_update = function()
cls()
map(16,0,0,0,16,16)
color"6"
cursor(0,1)
if not state then
print"super forum poster 2 turbo dx"
if (btnp"4") state = 0
else
print("@"..player.name.." score:"..score.." time:"..timer)
end
if state == 0 then
if (btn"0") player.x -= 1.5
if (btn"1") player.x += 1.5
if (btn"2") player.y -= 1.5
if (btn"3") player.y += 1.5

timer -= 1
if (timer == 0) state = 1
end

local yoff = 33
for a in all(actors) do
if state == 0 then
a.x = mid(8, a.x+a.vx, 122)
if (a.x <= 8 or a.x >= 122) a.vx *= -1
a.y = mid(42, a.y + (a.vy or 0), 116)
end
local s = 64
if a.color then
s = 65
if (a.y >= 116 or a.y <= 42) a.vy *= -1
if a.y <= 42 then
del(actors, a)
add(actors, a)
elseif a.vy > 0 then
for o in all(actors) do
if not o.color and abs(o.y-a.y-7) < 2 and abs(o.x-a.x) <= 6 then
a.name = o.name
a.vy = -1
break
end
end
end
print("thread:"..a.topic.." lp: @"..a.name, 4, yoff, a.color)
if (a.name == player.name and state == 0) score += 1
pal(8, a.color)
yoff -= 6
elseif a == player then
pal(13,14)
end
spr(s, a.x-4, a.y)
pal()
end

cursor(4, 44)
if (state == 1) print"game over"
if not state then
print"dominate the forum! z to start"
print" arrows move. bounce threads,"
print"and dominate the conversation!"
end
end,
_init = function(self)
actors = {}
local function rndchar(l)
local a = flr(rnd(#l))+1
return sub(l, a, a)
end
local function rndactor(p, y)
if (p) y = 116-rnd(60-p)
local alpha = "abcdefghijklmnopqrstuvwxyz"
local a = {
x=8+rnd(112),
y=y,
vx=1 - rnd(2),
name=rndchar(alpha)..rndchar(alpha)..flr(rnd(1000))
}
add(actors, a)
return a
end
for i=1,20 do
rndactor(i*2)
end
local wide = "\140\148\133\137\141\145\130\134\138\142\146\150\131\135\139\143\147\151"
for i=0,4 do
local t = rndactor(nil, 127)
t.vy = -1
t.topic = rndchar(wide)..rndchar(wide)
t.color = 8+i
end
player = rndactor(nil, 64)
player.x = 64
player.vx = 0
score = 0
timer = 1800
state = nil
end,
})
add(games,{name="tbd",author="tbd",_update = function() win() end}) -- game 3

0 comments on commit ceb2976

Please sign in to comment.