-
Notifications
You must be signed in to change notification settings - Fork 0
/
lava.p8
80 lines (69 loc) · 6.98 KB
/
lava.p8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
pico-8 cartridge // http://www.pico-8.com
version 21
__lua__
t=0
function drawlava()
rectfill(0,0,127,127,10)
--map(51,10)
for i=0,127 do
for iters=0,10 do
ii = i + iters*10-t/10
local y= sin(t/53+iters/7)*sin(ii/32)*4 + i%2*0.4
--local w=(cos((i+t)/64+iters/4)*0.5+1)*5
w=5
local offset = 12.5*iters
rectfill(i,offset-w+y,i,offset+w+y, 9)
end
end
end
function drawlava2()
rectfill(0,0,127,127,10)
--map(51,10)
for i=0,127 do
for iters=0,5 do
ii = i + iters*10+t/125
local y= sin(t/53+iters/7)*sin(ii/64-t/101)*8 + sin(i/4+t/16)*0.5
--local w=(cos((i+t)/64+iters/4)*0.5+1)*5
w=10
local offset = 25*iters
rectfill(i,offset-w+y,i,offset+w+y, 9)
end
end
end
function _draw()
t+=1
drawlava()
--map(0,0)
print(flr(stat(1)*100) .. "% CPU",0,16,7)
print(stat(7).." fps", 0, 24, 7)
end
__gfx__
000000000ffffff0aaa9999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000fffffff9a88998800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700ffffffff9999a98800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000ffffffff99a9999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000ffffffff9999aa9900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700ffffffff989aa99900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000fffffff9899a98800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000fffff08a99998900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
__map__
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000010101010101010101010101010101010101010100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000010101010101010101010101010101010101010100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000010101010101010101010101010101010101010100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000010101010101010101010101010101010101010100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000010101010101010101010101010101010101010100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000010101010101010101010101010101010101010100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000010101010101010101010101010101010101010100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000010101010101010101010101010101010101010100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000010101010101010101010101010101010101010100000000000000000000000000000000000000000000000000000000000202020202020200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000010101010101010101010101010101010101010100000000000000000000000000000000000000000000000000000000000202020202020200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000010101010101010101010101010101010101010100000000000000000000000000000000000000000000000002000000000202020202020200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000010101010101010101010101010101010101010100000000000000000000000000000000000000000000000000000000000202020202020200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000010101010101010101010101010101010101010100000000000000000000000000000000000000000000000000000000000202020202020200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000010101010101010101010101010101010101010100000000000000000000000000000000000000000000000000000000000202020202020200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000010101010101010101010101010101010101010100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000010101010101010101010101010101010101010100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000010101010101010101010101010101010101010100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000010101010101010101010101010101010101010100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000